Open yalesnikov opened 4 years ago
It seems the documentation and examples were updated before release. They're on 6.0.0 while release is on 5.1.1
Check out the examples available during last release https://github.com/trimox/angular-mdc-web/tree/fe306e0b2320e1a0dee131ef132949bd583f8835/demos/src/app/components.
In your case, you should use the following:
<mdc-form-field>
<mdc-text-field
formControlName="username"
label="Username"
outlined
[errorStateMatcher]="matcher"
>
</mdc-text-field>
<mdc-helper-text validation>{{validationMessage}}</mdc-helper-text->
</mdc-form-field>
Hi, I tried to import TextField to my project and I had error.
I imported MdcTextFieldModule and added it to the import array into NgModule
my-module.ts
I used a validationMessage directive in html. I added this directive into mdc-text-field.
my-component.html
I used methods from example at official your site: https://trimox.github.io/angular-mdc-web/#/angular-mdc-web/text-field/examples
my-component.ts
But I had error: Can't bind to 'validationMessage' since it isn't a known property of 'mdc-text-field'
I thought that your documentation is not full and I did not imported this directive or I incorrect imported textfiled. Can you help me please?