File tree 1 file changed +9
-8
lines changed 1 file changed +9
-8
lines changed Original file line number Diff line number Diff line change 43
43
* - Otherwise enable scrolling only if the expression evaluates to truthy value.
44
44
*
45
45
* @example
46
- <example module="ngAnimate " deps="angular-animate.js" animations="true">
46
+ <example module="includeExample " deps="angular-animate.js" animations="true">
47
47
<file name="index.html">
48
- <div ng-controller="Ctrl ">
48
+ <div ng-controller="ExampleController ">
49
49
<select ng-model="template" ng-options="t.name for t in templates">
50
50
<option value="">(blank)</option>
51
51
</select>
57
57
</div>
58
58
</file>
59
59
<file name="script.js">
60
- function Ctrl($scope) {
61
- $scope.templates =
62
- [ { name: 'template1.html', url: 'template1.html'},
63
- { name: 'template2.html', url: 'template2.html'} ];
64
- $scope.template = $scope.templates[0];
65
- }
60
+ angular.module('includeExample', ['ngAnimate'])
61
+ .controller('ExampleController', ['$scope', function($scope) {
62
+ $scope.templates =
63
+ [ { name: 'template1.html', url: 'template1.html'},
64
+ { name: 'template2.html', url: 'template2.html'} ];
65
+ $scope.template = $scope.templates[0];
66
+ }]);
66
67
</file>
67
68
<file name="template1.html">
68
69
Content of template1.html
You can’t perform that action at this time.
0 commit comments