如何指定模型的ngInclude指令在AngularJS
1个回答
推荐于2016-11-22 · 知道合伙人互联网行家
关注
展开全部
<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">
转载,仅供参考,祝你愉快,满意请采纳。
本回答被提问者和网友采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询