如何指定模型的ngInclude指令在AngularJS
发布网友
发布时间:2022-05-18 23:28
我来回答
共1个回答
热心网友
时间:2022-05-19 00:58
<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">
转载,仅供参考,祝你愉快,满意请采纳。