@@ -57,7 +57,7 @@ describe('MdInputContainer', function () {
5757 MdInputContainerWithDynamicPlaceholder ,
5858 MdInputContainerWithFormControl ,
5959 MdInputContainerWithFormErrorMessages ,
60- MdInputContainerWithCustomErrorStateFunction ,
60+ MdInputContainerWithCustomErrorStateMatcher ,
6161 MdInputContainerWithFormGroupErrorMessages ,
6262 MdInputContainerWithId ,
6363 MdInputContainerWithPrefixAndSuffix ,
@@ -671,11 +671,11 @@ describe('MdInputContainer', function () {
671671 } ) ;
672672 } ) ) ;
673673
674- it ( 'should display an error message when a custom error function returns true' , async ( ( ) => {
674+ it ( 'should display an error message when a custom error matcher returns true' , async ( ( ) => {
675675 fixture . destroy ( ) ;
676676
677- let customFixture = TestBed . createComponent ( MdInputContainerWithCustomErrorStateFunction ) ;
678- let component : MdInputContainerWithCustomErrorStateFunction ;
677+ let customFixture = TestBed . createComponent ( MdInputContainerWithCustomErrorStateMatcher ) ;
678+ let component : MdInputContainerWithCustomErrorStateMatcher ;
679679
680680 customFixture . detectChanges ( ) ;
681681 component = customFixture . componentInstance ;
@@ -1017,20 +1017,20 @@ class MdInputContainerWithFormErrorMessages {
10171017@Component ( {
10181018 template : `
10191019 <form #form="ngForm" novalidate>
1020- <md-input-container [errorStateFn ]="customErrorStateFn .bind(this)">
1020+ <md-input-container [errorStateMatcher ]="customErrorStateMatcher .bind(this)">
10211021 <input mdInput [formControl]="formControl">
10221022 <md-hint>Please type something</md-hint>
10231023 <md-error>This field is required</md-error>
10241024 </md-input-container>
10251025 </form>
10261026 `
10271027} )
1028- class MdInputContainerWithCustomErrorStateFunction {
1028+ class MdInputContainerWithCustomErrorStateMatcher {
10291029 @ViewChild ( 'form' ) form : NgForm ;
10301030 formControl = new FormControl ( '' , Validators . required ) ;
10311031 errorState = false ;
10321032
1033- customErrorStateFn ( c : NgControl ) : boolean {
1033+ customErrorStateMatcher ( c : NgControl ) : boolean {
10341034 return this . errorState ;
10351035 }
10361036}
0 commit comments