I am using jquery and angularJS(bad practice but i must).When navigating
with jquery mobile,adding page in dom dosen't trigger angular because it is
loaded only on first page.
1.html:
<html ng-app="aki" ng-controller="akicontrollers">
...
<section data-role="page">
<ul id="gridaccom" data-role="listview" >
<li ng-repeat="object in barList" id="lista" >
{{object.Name}}
</li>
</ul>
<a href="2.html">LINK</a>
</section>
...
2.html
<section data-role="page">
<ul id="gridaccom1" data-role="listview" >
<li ng-repeat="object in barList" id="lista" >
{{object.Name}}
</li>
</ul>
</section>
Ng repeat works in 1.html but when inserted 2.html into dom i just get
"{{object.Name}}"
My question is :Is it possible to "relaunch" angular or let it rescan html
document and compile page inserted in DOM?
Thanks in advance.
plunker: http://plnkr.co/edit/IjvHU3km42JvectwUoJn?p=info
--
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 http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.