My Goal:
Basic directive as shown here
http://www.w3schools.com/angular/tryit.asp?filename=try_ng_directive_tagname
to be integrated into existing web application.
How am I doing it:
Unlike the example I have the angular app code into a separate file.
I have loaded angular and then the app script.
However my page loads content dynamically. The
<w3-test-directive></w3-test-directive> is ajax loaded into a div.
This never renders. I read online that you need to call $compile, this
still doesn't work.
The strange thing is that if I do an even more basic like below which is
dynamically loaded it works.
<div ng-app>
Name: <input type="text" ng-model="name" />
<br /><br />
Welcome to AngularJS {{name}}
</div>
Can anyone give me any direction on what to check or look on.
I can't give the example for regulatory reasons and so I imagine it is hard
to diagnose.
--
You received this message because you are subscribed to the Google Groups
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.