Again I... I have stuck. I need to use Angular.JS in my project, but I can't run Angular in dynamic generated tags.
<h1>Your albums</h1><hr/>
<div ng-controller="AlbumsController">
<ul>
<li ng-repeat="album in albums">
{{album.name}}
<p>{{album.desc}}</p>
</li>
</ul>
</div>
That's block, which generated dynamically through JQuery.
<html ng-app="Application" class="no-js" lang="ru">
That's tag static, and it must init angular.
My dynamic block doesn't work. It returns: {{album.name}} {{album.desc}}, that's sign of not initialized Angular.JS :(
var Juster = angular.module('Juster', []);
Juster.controller('AlbumsController', function ($scope) {
$.post("/index.php/profile_ctrl/myalbums", function(data){
$scope.albums = data;
})
});
$compileit manually into Angular code. It would help to see more code (escpecially where/when/how are the new elements generated and inserted).