Question

Yesterday when I was using older version, everything worked fine. My code looked like this:

<div ng-repeat="widget in widgets" class="box" ng-include="widget.view"></div>

Today I updated to newer version and it seems that it doesn't work anymore. I tried different versions of how to use ng-include and this one below renders a comment where the content should be:

Comment:

<!-- ngInclude: widget.view -->

Code:

<div ng-repeat="widget in widgets" class="box">
    <ng-include src="widget.view"></ng-include>
</div>

I've also tried moving views out of partials into script tags but it doesn't help. Before I moved to script tag there was SUCCESSFUL xhr request to partial, but it just didn't render it.

What could be wrong?

Edit: if I change version back without any code modification, everything works again.

Was it helpful?

Solution

Possibly it's this issue https://github.com/angular/angular.js/issues/3627 foo bar foo bar

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top