Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dynamic Form module and AOT compilation problem #508

Closed
demetrio812 opened this issue Apr 14, 2017 · 0 comments
Closed

Dynamic Form module and AOT compilation problem #508

demetrio812 opened this issue Apr 14, 2017 · 0 comments

Comments

@demetrio812
Copy link

Hello,
I've updated covalent, everything look fine except for this when I compile with AOT:

ERROR in ng:///<myprj_path>/node_modules/@covalent/dynamic-forms/dynamic-elements/dynamic-input/dynamic-input.component.html (13,5): Property 'max' does not exist on type 'ValidationErrors'.
ng:///<myprj_path>/node_modules/@covalent/dynamic-forms/dynamic-elements/dynamic-input/dynamic-input.component.html (15,9): Property 'min' does not exist on type 'ValidationErrors'.

I can see that the code looks like that:

<span *ngIf="control.errors?.max">Max: {{control.errors?.max.maxValue}}</span>
<span *ngIf="control.errors?.min">Min: {{control.errors?.min.minValue}}</span>

and that is like a no go for AOT.

Instead of control.errors?.max it should be control.hasError(‘max’)

It looks like I've got the latest version 1.0.0-beta.3-2 or am I doing something wrong here?
thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants