Asset after ajax

Greetings,

I have a basic view with a dropdownlist and on change I update the content below the dropdown with Ajax request.

The rendering view of the Ajax contains registered Asset with js file.


use app\assets\MyAsset::register($this);

Only the first time the trigger allows the js to execute contrary to the followings. The quick and dirty solution I have so far is to call in the view registerJs function with the same js code of the js file and POS_READY.

From the docs only POS_HEAD, POS_BEGIN and POS_END are the allowed positions for the registered files stated in asset.

So which is the right solution?