ng-include文件实现ng-repeat

时间:2022-12-02 17:28:02

Angularjs实现*度很高。比如ng-repeat可以以包含的文件中实现数据循环。

如:
ng-include文件实现ng-repeat

 

当我们把这html文件被ng-include包含时,它完全能正常呈现对应的数据:

创建应用app:
ng-include文件实现ng-repeat

 

创建Controller:
ng-include文件实现ng-repeat

 

Ok,现在ASP.NET MVC的视图使用ng-include外含html文档:
ng-include文件实现ng-repeat

 

运行预览:
ng-include文件实现ng-repeat