Thursday, 15 May 2014

angularjs - Adding angular js attribute after page render -



angularjs - Adding angular js attribute after page render -

i have application contains div content in it. when click button jquery adds angularjs directive div. after adding directive phone call scope.$apply(), doesn't seem inform angular new directive on div. can explain me how can inform angularjs new directive added jquery?

you shouldn't adding directives markup jquery. utilize angular whenever possible.

that said, if have add together directives via straight dom manipulations that, you'll need utilize $compile provider compile element , bind scope before add together it.

angularjs angularjs-directive

No comments:

Post a Comment