jquery - Autocomplete Directive in ng-repeat loop Angular -


i have question angular heads. fighting on problem autocomplete custom directive. autocompletes events loaded in directive etc.

for reasons have put autocomplete input field in each line of <table> element.

for that, use ng-repeat attribute. none of autocomplete fields working.

when remove ng-repeat attribute, autocompletes working...

so question is, there known bug this?

thank you

you need transclude directive.

because directive nested in ng-repeat contents of directive not being compiled dom, hence not working.

directives have transclude attribute , coupled ng-transclude tag allow directives work when nested in ng-repeat

some resources started:

this article great starter directives , has nice introduction transclusion.

here source giving examples of transclude , compile in ng-repeat.


Comments

Popular posts from this blog

curl - PHP fsockopen help required -

HTTP/1.0 407 Proxy Authentication Required PHP -

c# - Resource not found error -