Skip to content

Commit 2ec8196

Browse files
hanstestchristopherthielen
authored andcommitted
docs(sample): fix typos in sample
manually merged from PR #1342
1 parent 0531de0 commit 2ec8196

File tree

3 files changed

+13
-13
lines changed

3 files changed

+13
-13
lines changed

sample/app/contacts/contacts.js

+6-6
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ angular.module('uiRouterSample.contacts', [
123123
template: 'This is contacts.detail populating the "hint" ui-view'
124124
},
125125

126-
// This one is targeting the ui-view="menu" within the parent state's template.
126+
// This one is targeting the ui-view="menuTip" within the parent state's template.
127127
'menuTip': {
128128
// templateProvider is the final method for supplying a template.
129129
// There is: template, templateUrl, and templateProvider.
@@ -168,7 +168,7 @@ angular.module('uiRouterSample.contacts', [
168168
}]
169169
},
170170

171-
// Here we see we are overriding the template that was set by 'contact.detail'
171+
// Here we see we are overriding the template that was set by 'contacts.detail'
172172
'hint@': {
173173
template: ' This is contacts.detail.item overriding the "hint" ui-view'
174174
}
@@ -185,9 +185,9 @@ angular.module('uiRouterSample.contacts', [
185185
.state('contacts.detail.item.edit', {
186186
views: {
187187

188-
// This is targeting the unnamed view within the 'contact.detail' state
189-
// essentially swapping out the template that 'contact.detail.item' had
190-
// had inserted with this state's template.
188+
// This is targeting the unnamed view within the 'contacts.detail' state
189+
// essentially swapping out the template that 'contacts.detail.item' had
190+
// inserted with this state's template.
191191
'@contacts.detail': {
192192
templateUrl: 'app/contacts/contacts.detail.item.edit.html',
193193
controller: ['$scope', '$stateParams', '$state', 'utils',
@@ -203,4 +203,4 @@ angular.module('uiRouterSample.contacts', [
203203
});
204204
}
205205
]
206-
);
206+
);

sample/common/utils/utils-service.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ angular.module('uiRouterSample.utils.service', [
1212
return null;
1313
},
1414

15-
// Util for returning a randomKey from a collection that also isn't the current key
15+
// Util for returning a random key from a collection that also isn't the current key
1616
newRandomKey: function newRandomKey(coll, key, currentKey){
1717
var randKey;
1818
do {
@@ -21,4 +21,4 @@ angular.module('uiRouterSample.utils.service', [
2121
return randKey;
2222
}
2323
};
24-
});
24+
});

sample/index.html

+5-5
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
<!-- styles for ng-animate are located here -->
1010
<link rel="stylesheet" type="text/css" href="css/styles.css">
1111

12-
<!-- Include both angular.js and angular-ui-router.js-->
12+
<!-- Include angular.js, angular-animate.js and angular-ui-router.js-->
1313
<script src="../lib/angular-1.2.14/angular.js"></script>
1414
<script src="../lib/angular-1.2.14/angular-animate.js"></script>
1515
<script src="../release/angular-ui-router.js"></script>
@@ -24,8 +24,8 @@
2424
-->
2525
<script src="app/contacts/contacts.js"></script>
2626

27-
<!-- contacts-service.js, and utils-service.js define services for use by the contacts
28-
module.
27+
<!-- contacts-service.js, and utils-service.js define services for use by the
28+
uiRouterSample.contacts module.
2929
-->
3030
<script src="app/contacts/contacts-service.js"></script>
3131
<script src="common/utils/utils-service.js"></script>
@@ -52,8 +52,8 @@
5252
<li ui-sref-active="active"><a ui-sref="about">About</a></li>
5353
</ul>
5454

55-
<!-- Here is a named ui-view. ui-views don't have to be named, but we'll be populate this
56-
on from various different child states and we want a name to help us target. -->
55+
<!-- Here is a named ui-view. ui-views don't have to be named, but we'll populate this
56+
one from various different child states and we want a name to help us target. -->
5757
<p ui-view="hint" class="navbar-text pull-right"></p>
5858
</div></div>
5959
</div>

0 commit comments

Comments
 (0)