This issue is not related to AngularJs. It so happens that jQuery Mobile does not know about every change in the DOM, and you need to give it a hint. To enable jQuery Mobile about the change, you need to raise an event createfor the item.
According to the docs (see "Improving new markup"):
, Ajax , , create, . ( ), ( , ..).
, , , - create .
, . - :
app.directive('jqueryMobileTpl', function() {
return {
link: function(scope, elm, attr) {
elm.trigger('create');
}
};
});
:
<div jquery-mobile-tpl>
<ul data-role="listview" data-inset="true" data-theme="c">
<li><a href="#/detailsuser/a">A</a></li>
<li><a href="#/detailsuser/b">B</a></li>
<li><a href="#/detailsuser/c">C</a></li>
<li><a href="#/detailsuser/d">D</a></li>
</ul>
</div>
, , , , , jQuery Mobile . .