如何指定模型的ngInclude指令在AngularJS 200
1个回答
2017-08-14
展开全部
1. 有关于谷歌集团这一个你可以在这里看到它。 它看起来像这样的功能,不支持开箱即用,但在这篇文章中描述你布赖斯的补丁。 下面是他的jsFiddle中的示例代码:<script id="partials/addressform.html" type="text/ng-template">
partial of type {{type}}<br>
</script>
<div ng-controller="MyCtrl">
<ng-include src="'partials/addressform.html'" onInclude="type='billing'"></ng-include>
<ng-include src="'partials/addressform.html'" onLoad="type='delivery'"></ng-include>
</div>
2. Quick'n'dirty的解决方案:<div ng-init="details=document||language||projectSummary.ProjectResults">
转载,仅供参考,祝你愉快,满意请采纳。
partial of type {{type}}<br>
</script>
<div ng-controller="MyCtrl">
<ng-include src="'partials/addressform.html'" onInclude="type='billing'"></ng-include>
<ng-include src="'partials/addressform.html'" onLoad="type='delivery'"></ng-include>
</div>
2. Quick'n'dirty的解决方案:<div ng-init="details=document||language||projectSummary.ProjectResults">
转载,仅供参考,祝你愉快,满意请采纳。
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询