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 55
55
*
56
56
*
57
57
* @example
58
- <example module="ngAnimate " deps="angular-animate.js" animations="true">
58
+ <example module="switchExample " deps="angular-animate.js" animations="true">
59
59
<file name="index.html">
60
- <div ng-controller="Ctrl ">
60
+ <div ng-controller="ExampleController ">
61
61
<select ng-model="selection" ng-options="item for item in items">
62
62
</select>
63
63
<tt>selection={{selection}}</tt>
71
71
</div>
72
72
</file>
73
73
<file name="script.js">
74
- function Ctrl($scope) {
75
- $scope.items = ['settings', 'home', 'other'];
76
- $scope.selection = $scope.items[0];
77
- }
74
+ angular.module('switchExample', ['ngAnimate'])
75
+ .controller('ExampleController', ['$scope', function($scope) {
76
+ $scope.items = ['settings', 'home', 'other'];
77
+ $scope.selection = $scope.items[0];
78
+ }]);
78
79
</file>
79
80
<file name="animations.css">
80
81
.animate-switch-container {
You can’t perform that action at this time.
0 commit comments