File tree 1 file changed +6
-5
lines changed 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -2274,14 +2274,15 @@ var minlengthDirective = function() {
2274
2274
* specified in form `/something/` then the value will be converted into a regular expression.
2275
2275
*
2276
2276
* @example
2277
- <example name="ngList-directive">
2277
+ <example name="ngList-directive" module="listExample" >
2278
2278
<file name="index.html">
2279
2279
<script>
2280
- function Ctrl($scope) {
2281
- $scope.names = ['igor', 'misko', 'vojta'];
2282
- }
2280
+ angular.module('listExample', [])
2281
+ .controller('ExampleController', ['$scope', function($scope) {
2282
+ $scope.names = ['igor', 'misko', 'vojta'];
2283
+ }]);
2283
2284
</script>
2284
- <form name="myForm" ng-controller="Ctrl ">
2285
+ <form name="myForm" ng-controller="ExampleController ">
2285
2286
List: <input name="namesInput" ng-model="names" ng-list required>
2286
2287
<span class="error" ng-show="myForm.namesInput.$error.required">
2287
2288
Required!</span>
You can’t perform that action at this time.
0 commit comments