1
I’m having a problem, when loading an HTML block from the page via the angular, the elements that have the class ". datepicker", activate the jquery of the plugin "datepicker", however, as I noticed, the action that binds this block, is occurring after loading the elements.
I researched about, commented on the use of $watch and $on, we are calling the datepicker HTML / JS, as follows:
Call from the datepicker:
$('.datepicker').datepicker():
Element ( This element is inside an ng-controller and an ng-repeat ):
<input class="datepicker" />
This input is inside an "ng-controller" and in an "ng-repeat", a directive is not being used, there is some way to trigger an event after loading the block?
In reality, the problem is being, that this input, is inside an NG-REPEAT, and simply, does not work the datepicker inside it.
– helderburato
Then check out this OS English link: http://stackoverflow.com/questions/14099267/angular-ui-datepicker-in-ng-repeatworks-only-for-first-block
– Tafarel Chicotti
@helderburato or the way I said, or the link didn’t do you any good? If so, post an answer to your question to serve as a basis for others in the future.
– Tafarel Chicotti