Hi,
I have this code inside my directive "list-directive":
return function(scope){
var html_markup = '<ul><li ng-repeat="item in items"><ng-include 
src="item.contentUrl"></ng-include></li></ul>';
elm.html($compile(html_markup)(scope);
}

in my controller I have:
$scope.items = [
{contentUrl: "myDomain.com"},
{contentUrl: "myDomain.co"},
{contentUrl: "myDomain.com.be"}
];

in my partial I have:
<ul list-directive>

Sometimes I see my list after the page loads.
Sometimes when the page loads, I get:[[object HTMLUlistElement]] and in my 
console, $compile(html_markup)(scope) returns an empty jquery object when 
this happens.
Any idea why this happens and how to solve it?

-- 
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/groups/opt_out.

Reply via email to