File tree Expand file tree Collapse file tree 1 file changed +9
-8
lines changed Expand file tree Collapse file tree 1 file changed +9
-8
lines changed Original file line number Diff line number Diff line change @@ -1391,17 +1391,18 @@ var ngModelDirective = function() {
1391
1391
* in input value.
1392
1392
*
1393
1393
* @example
1394
- * <example name="ngChange-directive">
1394
+ * <example name="ngChange-directive" module="changeExample" >
1395
1395
* <file name="index.html">
1396
1396
* <script>
1397
- * function Controller($scope) {
1398
- * $scope.counter = 0;
1399
- * $scope.change = function() {
1400
- * $scope.counter++;
1401
- * };
1402
- * }
1397
+ * angular.module('changeExample', [])
1398
+ * .controller('ExampleController', ['$scope', function($scope) {
1399
+ * $scope.counter = 0;
1400
+ * $scope.change = function() {
1401
+ * $scope.counter++;
1402
+ * };
1403
+ * }]);
1403
1404
* </script>
1404
- * <div ng-controller="Controller ">
1405
+ * <div ng-controller="ExampleController ">
1405
1406
* <input type="checkbox" ng-model="confirmed" ng-change="change()" id="ng-change-example1" />
1406
1407
* <input type="checkbox" ng-model="confirmed" id="ng-change-example2" />
1407
1408
* <label for="ng-change-example2">Confirmed</label><br />
You can’t perform that action at this time.
0 commit comments