Skip to content

Commit 565baf0

Browse files
author
Ales Rechtorik
committed
remove public from element ref injection
1 parent 2432f74 commit 565baf0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/lib/input/input.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -236,9 +236,9 @@ export class MdInput implements ControlValueAccessor, AfterContentInit, OnChange
236236

237237
_elementType: 'input' | 'textarea';
238238

239-
constructor(public _elementRef: ElementRef) {
239+
constructor(elementRef: ElementRef) {
240240
// Set the element type depending on normalized selector used(md-input / md-textarea)
241-
this._elementType = this._elementRef.nativeElement.nodeName.toLowerCase() === 'md-input' ?
241+
this._elementType = elementRef.nativeElement.nodeName.toLowerCase() === 'md-input' ?
242242
'input' :
243243
'textarea';
244244
}

0 commit comments

Comments
 (0)