File tree Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change 5555 *
5656 *
5757 * @example
58- <example module="ngAnimate " deps="angular-animate.js" animations="true">
58+ <example module="switchExample " deps="angular-animate.js" animations="true">
5959 <file name="index.html">
60- <div ng-controller="Ctrl ">
60+ <div ng-controller="ExampleController ">
6161 <select ng-model="selection" ng-options="item for item in items">
6262 </select>
6363 <tt>selection={{selection}}</tt>
7171 </div>
7272 </file>
7373 <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+ }]);
7879 </file>
7980 <file name="animations.css">
8081 .animate-switch-container {
You can’t perform that action at this time.
0 commit comments