diff --git a/modules/@angular/router/src/utils/collection.ts b/modules/@angular/router/src/utils/collection.ts index a9139715c2..b765c9747b 100644 --- a/modules/@angular/router/src/utils/collection.ts +++ b/modules/@angular/router/src/utils/collection.ts @@ -6,7 +6,7 @@ * found in the LICENSE file at https://angular.io/license */ -export function shallowEqualArrays(a:any[], b:any[]):boolean { +export function shallowEqualArrays(a: any[], b: any[]): boolean { if (a.length !== b.length) return false; for (let i = 0; i < a.length; ++i) { if (!shallowEqual(a[i], b[i])) return false; diff --git a/modules/@angular/router/test/router.spec.ts b/modules/@angular/router/test/router.spec.ts index 9ea6c9b915..6708db4869 100644 --- a/modules/@angular/router/test/router.spec.ts +++ b/modules/@angular/router/test/router.spec.ts @@ -991,9 +991,7 @@ class AbsoluteLinkCmp { }) class DummyLinkCmp { private exact: boolean; - constructor(route: ActivatedRoute) { - this.exact = (route.snapshot.params).exact === 'true'; - } + constructor(route: ActivatedRoute) { this.exact = (route.snapshot.params).exact === 'true'; } } @Component({ @@ -1004,9 +1002,7 @@ class DummyLinkCmp { }) class DummyLinkWithParentCmp { private exact: boolean; - constructor(route: ActivatedRoute) { - this.exact = (route.snapshot.params).exact === 'true'; - } + constructor(route: ActivatedRoute) { this.exact = (route.snapshot.params).exact === 'true'; } } @Component({ @@ -1029,7 +1025,8 @@ class LinkWithQueryParamsAndFragment { class SimpleCmp { } -@Component({selector: 'collect-params-cmp', template: `collect-params`, directives: ROUTER_DIRECTIVES}) +@Component( + {selector: 'collect-params-cmp', template: `collect-params`, directives: ROUTER_DIRECTIVES}) class CollectParamsCmp { private params: any = []; private urls: any = []; @@ -1039,9 +1036,7 @@ class CollectParamsCmp { a.url.forEach(u => this.urls.push(u)); } - recordedUrls(): string[] { - return this.urls.map(a => a.map(p => p.path).join('/')); - } + recordedUrls(): string[] { return this.urls.map(a => a.map(p => p.path).join('/')); } } @Component({selector: 'blank-cmp', template: ``, directives: ROUTER_DIRECTIVES})