Skip to content

Commit 2c59c22

Browse files
Merge pull request #1 from angular/master
Refresh upstream
2 parents 0c3620b + 70dbb15 commit 2c59c22

File tree

5 files changed

+6
-4
lines changed

5 files changed

+6
-4
lines changed

docs/content/tutorial/step_04.ngdoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ maintain. As we add more and more features, our files will get bigger and bigger
4141
difficult to navigate and find the code we are looking for.
4242

4343
Instead we should put each feature/entity in its own file. Each stand-alone controller will be
44-
defined in its own file, each component will be defined in each own file, etc.
44+
defined in its own file, each component will be defined in its own file, etc.
4545

4646
Luckily, we don't need to change anything with respect to that guideline in our code, since we have
4747
already defined our `phoneList` component in its own `phone-list.component.js` file. Good job!

docs/content/tutorial/step_09.ngdoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -402,7 +402,7 @@ You can now rerun `npm run protractor` to see the tests run (and hopefully pass)
402402

403403
<div></div>
404404

405-
* Try to add a `{{$ctrl.phoneId}` binding in the template string for the phone details view:
405+
* Try to add a `{{$ctrl.phoneId}}` binding in the template string for the phone details view:
406406

407407
```js
408408
when('/phones/:phoneId', {

src/ngMock/angular-mocks.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1133,6 +1133,8 @@ angular.mock.dump = function(object) {
11331133
$http.get('/auth.py').then(function(response) {
11341134
authToken = response.headers('A-Token');
11351135
$scope.user = response.data;
1136+
}).catch(function() {
1137+
$scope.status = 'Failed...';
11361138
});
11371139
11381140
$scope.saveMessage = function(message) {

src/ngResource/resource.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@ function shallowClearAndCopy(src, dst) {
280280
* the Resource API. This object can be serialized through {@link angular.toJson} safely
281281
* without attaching AngularJS-specific fields. Notice that `JSON.stringify` (and
282282
* `angular.toJson`) automatically use this method when serializing a Resource instance
283-
* (see [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/stringify#toJSON()_behavior)).
283+
* (see [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/stringify#toJSON%28%29_behavior)).
284284
*
285285
* @example
286286
*

test/ngSanitize/sanitizeSpec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ describe('HTML', function() {
246246
.toEqual('<p>text1text2</p>');
247247
});
248248

249-
it('should remove clobbered elements', function() {
249+
it('should throw on clobbered elements', function() {
250250
inject(function($sanitize) {
251251
expect(function() {
252252
$sanitize('<form><input name="parentNode" /></form>');

0 commit comments

Comments
 (0)