Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit 9987a60

Browse files
style(guide/module): use dot first style when chaining
1 parent 222edd8 commit 9987a60

File tree

1 file changed

+13
-9
lines changed

1 file changed

+13
-9
lines changed

docs/content/guide/module.ngdoc

+13-9
Original file line numberDiff line numberDiff line change
@@ -80,17 +80,19 @@ The above is a suggestion. Tailor it to your needs.
8080
</file>
8181

8282
<file name="script.js">
83-
angular.module('xmpl.service', []).
84-
value('greeter', {
83+
angular.module('xmpl.service', [])
84+
85+
.value('greeter', {
8586
salutation: 'Hello',
8687
localize: function(localization) {
8788
this.salutation = localization.salutation;
8889
},
8990
greet: function(name) {
9091
return this.salutation + ' ' + name + '!';
9192
}
92-
}).
93-
value('user', {
93+
})
94+
95+
.value('user', {
9496
load: function(name) {
9597
this.name = name;
9698
}
@@ -99,16 +101,18 @@ The above is a suggestion. Tailor it to your needs.
99101
angular.module('xmpl.directive', []);
100102

101103
angular.module('xmpl.filter', []);
102-
103-
angular.module('xmpl', ['xmpl.service', 'xmpl.directive', 'xmpl.filter']).
104-
run(function(greeter, user) {
104+
105+
angular.module('xmpl', ['xmpl.service', 'xmpl.directive', 'xmpl.filter'])
106+
107+
.run(function(greeter, user) {
105108
// This is effectively part of the main method initialization code
106109
greeter.localize({
107110
salutation: 'Bonjour'
108111
});
109112
user.load('World');
110-
}).
111-
controller('XmplController', function($scope, greeter, user){
113+
})
114+
115+
.controller('XmplController', function($scope, greeter, user){
112116
$scope.greeting = greeter.greet(user.name);
113117
});
114118

0 commit comments

Comments
 (0)