mirror of
https://github.com/github/codeql.git
synced 2025-12-17 17:23:36 +01:00
19 lines
870 B
HTML
19 lines
870 B
HTML
<!-- Adapted from the AngularJS Developer Guide (https://docs.angularjs.org/guide),
|
|
which is licensed under the MIT license; see file LICENSE in parent directory. -->
|
|
<div ng-controller="EventController">
|
|
Root scope <tt>MyEvent</tt> count: {{count}}
|
|
<ul>
|
|
<li ng-repeat="i in [1]" ng-controller="EventController"> <!-- ScopeProperty -->
|
|
<button ng-click="$emit('MyEvent')">$emit('MyEvent')</button> <!-- RootScopeProperty -->
|
|
<button ng-click="$broadcast('MyEvent')">$broadcast('MyEvent')</button> <!-- RootScopeProperty -->
|
|
<br>
|
|
Middle scope <tt>MyEvent</tt> count: {{count}} <!-- ScopeProperty -->
|
|
<ul>
|
|
<li ng-repeat="item in [1, 2]" ng-controller="EventController"> <!-- ScopeProperty -->
|
|
Leaf scope <tt>MyEvent</tt> count: {{count}} <!-- ScopeProperty -->
|
|
</li>
|
|
</ul>
|
|
</li>
|
|
</ul>
|
|
</div>
|