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 @@ -2374,15 +2374,16 @@ var CONSTANT_VALUE_REGEXP = /^(true|false|\d+)$/;
2374
2374
* of the `input` element
2375
2375
*
2376
2376
* @example
2377
- <example name="ngValue-directive">
2377
+ <example name="ngValue-directive" module="valueExample" >
2378
2378
<file name="index.html">
2379
2379
<script>
2380
- function Ctrl($scope) {
2381
- $scope.names = ['pizza', 'unicorns', 'robots'];
2382
- $scope.my = { favorite: 'unicorns' };
2383
- }
2380
+ angular.module('valueExample', [])
2381
+ .controller('ExampleController', ['$scope', function($scope) {
2382
+ $scope.names = ['pizza', 'unicorns', 'robots'];
2383
+ $scope.my = { favorite: 'unicorns' };
2384
+ }]);
2384
2385
</script>
2385
- <form ng-controller="Ctrl ">
2386
+ <form ng-controller="ExampleController ">
2386
2387
<h2>Which is your favorite?</h2>
2387
2388
<label ng-repeat="name in names" for="{{name}}">
2388
2389
{{name}}
You can’t perform that action at this time.
0 commit comments