Skip to content

Commit 417c6ed

Browse files
committed
fix: lint and aot errors
1 parent 73d7a46 commit 417c6ed

File tree

2 files changed

+36
-31
lines changed

2 files changed

+36
-31
lines changed
Lines changed: 30 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,30 @@
1-
/**
2-
* @license
3-
* Copyright Google Inc. All Rights Reserved.
4-
*
5-
* Use of this source code is governed by an MIT-style license that can be
6-
* found in the LICENSE file at https://angular.io/license
7-
*/
8-
9-
import {Injector} from '@angular/core';
10-
11-
/**
12-
* Custom injector to be used when providing custom
13-
* injection tokens to components inside a portal.
14-
* @docs-private
15-
*/
16-
export class PortalInjector implements Injector {
17-
constructor(
18-
private _parentInjector: Injector,
19-
private _customTokens: WeakMap<any, any>) { }
20-
21-
get(token: any, notFoundValue?: any): any {
22-
const value = this._customTokens.get(token);
23-
24-
if (typeof value !== 'undefined') {
25-
return value;
26-
}
27-
28-
return this._parentInjector.get<any>(token, notFoundValue);
29-
}
30-
}
1+
/**
2+
* @license
3+
* Copyright Google Inc. All Rights Reserved.
4+
*
5+
* Use of this source code is governed by an MIT-style license that can be
6+
* found in the LICENSE file at https://angular.io/license
7+
*/
8+
9+
import {Injector} from '@angular/core';
10+
11+
/**
12+
* Custom injector to be used when providing custom
13+
* injection tokens to components inside a portal.
14+
* @docs-private
15+
*/
16+
export class PortalInjector implements Injector {
17+
constructor(
18+
private _parentInjector: Injector,
19+
private _customTokens: WeakMap<any, any>) { }
20+
21+
get(token: any, notFoundValue?: any): any {
22+
const value = this._customTokens.get(token);
23+
24+
if (typeof value !== 'undefined') {
25+
return value;
26+
}
27+
28+
return this._parentInjector.get<any>(token, notFoundValue);
29+
}
30+
}

src/lib/snack-bar/simple-snack-bar.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,14 @@ import {MdSnackBarRef, MD_SNACK_BAR_DATA} from './index';
2525
}
2626
})
2727
export class SimpleSnackBar {
28+
/** Data that was injected into the snack bar. */
29+
data: { message: string, action: string };
30+
2831
constructor(
2932
public snackBarRef: MdSnackBarRef<SimpleSnackBar>,
30-
@Inject(MD_SNACK_BAR_DATA) public data: { message: string, action: string }) { }
33+
@Inject(MD_SNACK_BAR_DATA) data: any) {
34+
this.data = data;
35+
}
3136

3237
/** Dismisses the snack bar. */
3338
dismiss(): void {

0 commit comments

Comments
 (0)