File tree 1 file changed +8
-7
lines changed 1 file changed +8
-7
lines changed Original file line number Diff line number Diff line change 89
89
* @param {number= } offset Offset to deduct from the total number.
90
90
*
91
91
* @example
92
- <example>
92
+ <example module="pluralizeExample" >
93
93
<file name="index.html">
94
94
<script>
95
- function Ctrl($scope) {
96
- $scope.person1 = 'Igor';
97
- $scope.person2 = 'Misko';
98
- $scope.personCount = 1;
99
- }
95
+ angular.module('pluralizeExample', [])
96
+ .controller('ExampleController', ['$scope', function($scope) {
97
+ $scope.person1 = 'Igor';
98
+ $scope.person2 = 'Misko';
99
+ $scope.personCount = 1;
100
+ }]);
100
101
</script>
101
- <div ng-controller="Ctrl ">
102
+ <div ng-controller="ExampleController ">
102
103
Person 1:<input type="text" ng-model="person1" value="Igor" /><br/>
103
104
Person 2:<input type="text" ng-model="person2" value="Misko" /><br/>
104
105
Number of People:<input type="text" ng-model="personCount" value="1" /><br/>
You can’t perform that action at this time.
0 commit comments