File tree 1 file changed +7
-6
lines changed
1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -1583,15 +1583,16 @@ var CONSTANT_VALUE_REGEXP = /^(true|false|\d+)$/;
1583
1583
* of the `input` element
1584
1584
*
1585
1585
* @example
1586
- <example name="ngValue-directive">
1586
+ <example name="ngValue-directive" module="valueExample" >
1587
1587
<file name="index.html">
1588
1588
<script>
1589
- function Ctrl($scope) {
1590
- $scope.names = ['pizza', 'unicorns', 'robots'];
1591
- $scope.my = { favorite: 'unicorns' };
1592
- }
1589
+ angular.module('valueExample', [])
1590
+ .controller('ExampleController', ['$scope', function($scope) {
1591
+ $scope.names = ['pizza', 'unicorns', 'robots'];
1592
+ $scope.my = { favorite: 'unicorns' };
1593
+ }]);
1593
1594
</script>
1594
- <form ng-controller="Ctrl ">
1595
+ <form ng-controller="ExampleController ">
1595
1596
<h2>Which is your favorite?</h2>
1596
1597
<label ng-repeat="name in names" for="{{name}}">
1597
1598
{{name}}
You can’t perform that action at this time.
0 commit comments