为什么会有一个id=7的scope?有什么用?
<body ng-app="scopeExample">
<div class="show-scope-demo">
<div ng-controller="GreetController">
Hello {{name}}!
<div ng-controller="ListController">
<ol>
<li ng-repeat="name in names">{{name}} from {{department}}</li>
</ol>
<input ng-model="name">{{name}}
<div ng-include src="'child.html'">
</div>
</div>
</div>
</div>
</body>
child.html
<div ng-controller="ChildController">
<input ng-model="name">
</div>
相关分类