Reputation: 6926
$scope.selectNode = function(node){
$(".withOptions").append('<li id="list_7"><div><i class="icon20 i-folder-open"></i> '+node.title+' <i class="icon16 i-arrow-down-2"></i><div ng-include="\'http://localhost/test/public/admin/theme\'"></div></div></li>');
}
This code add to my list this li item. But ng-include dosn't not compile from angularJS
What can i do...?
Upvotes: 0
Views: 2890
Reputation: 396
Possible that will work in this way:
$scope.selectNode = function(node){
$(".withOptions").append($compile('<li id="list_7"><div><i class="icon20 i-folder-open"></i> '+node.title+' <i class="icon16 i-arrow-down-2"></i><div ng-include="\'http://localhost/test/public/admin/theme\'"></div></div></li>')($scope))
}
Upvotes: 2