File tree 1 file changed +12
-11
lines changed
1 file changed +12
-11
lines changed Original file line number Diff line number Diff line change 1
1
import {
2
- Component ,
3
- Input ,
4
- Directive ,
5
2
AfterContentInit ,
3
+ Component ,
6
4
ContentChild ,
7
5
ContentChildren ,
6
+ Directive ,
8
7
ElementRef ,
9
- QueryList ,
10
- ViewEncapsulation ,
8
+ EventEmitter ,
9
+ Input ,
11
10
Optional ,
12
11
Output ,
13
- EventEmitter ,
14
- Renderer
12
+ QueryList ,
13
+ Renderer ,
14
+ Self ,
15
+ ViewEncapsulation
15
16
} from '@angular/core' ;
16
17
import { coerceBooleanProperty } from '../core' ;
17
18
import { NgControl } from '@angular/forms' ;
18
19
import { getSupportedInputTypes } from '../core/platform/features' ;
19
20
import {
20
- MdInputContainerUnsupportedTypeError ,
21
- MdInputContainerPlaceholderConflictError ,
22
21
MdInputContainerDuplicatedHintError ,
23
- MdInputContainerMissingMdInputError
22
+ MdInputContainerMissingMdInputError ,
23
+ MdInputContainerPlaceholderConflictError ,
24
+ MdInputContainerUnsupportedTypeError
24
25
} from './input-container-errors' ;
25
26
26
27
@@ -181,7 +182,7 @@ export class MdInputDirective {
181
182
182
183
constructor ( private _elementRef : ElementRef ,
183
184
private _renderer : Renderer ,
184
- @Optional ( ) public _ngControl : NgControl ) {
185
+ @Optional ( ) @ Self ( ) public _ngControl : NgControl ) {
185
186
186
187
// Force setter to be called in case id was not specified.
187
188
this . id = this . id ;
You can’t perform that action at this time.
0 commit comments