File tree Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -99,21 +99,19 @@ The above is a suggestion. Tailor it to your needs.
99
99
angular.module('xmpl.directive', []);
100
100
101
101
angular.module('xmpl.filter', []);
102
-
102
+
103
103
angular.module('xmpl', ['xmpl.service', 'xmpl.directive', 'xmpl.filter']).
104
104
run(function(greeter, user) {
105
105
// This is effectively part of the main method initialization code
106
106
greeter.localize({
107
107
salutation: 'Bonjour'
108
108
});
109
109
user.load('World');
110
+ }).
111
+ controller('XmplController', function($scope, greeter, user){
112
+ $scope.greeting = greeter.greet(user.name);
110
113
});
111
114
112
-
113
- // A Controller for your app
114
- var XmplController = function($scope, greeter, user) {
115
- $scope.greeting = greeter.greet(user.name);
116
- };
117
115
</file>
118
116
</example>
119
117
You can’t perform that action at this time.
0 commit comments