Open lelabo-m opened 3 years ago
A solution was pointed on gitter.
Using the following syntax does not raise any error:
<span class="helper-text" [attr.data-error]="value"></span>
However, the parameter has to be a component attribute, which is not ideal but with limited side effects.
What do you mean that parameter has to be a component attribute?
It can't be a string parameter define in the HTML template:
<span class="helper-text" [attr.data-error]="some text here would not work"></span>
It has to be a ref to a component attribute in order to work. At least, from what I could observe.
Try this[attr.data-error]=" 'some text here would not work' "
Found an other solution which is not a 'hack'
<div @skipSchemaValidationFor="[data-error,data-success]" data-error="Please enter a valid title">
Note that the argument to @skipSchemaValidationFor
is a CSS selector, so if you have multiple attributes that need to be skipped, the syntax is:
<div @skipSchemaValidationFor="[data-error],[data-success]" data-error="..." data-success="...">
I am using a frontend framework and js interop in my app.
Since my upgrade to latest version with NNBD support, I am seeing errors on this kind of HTML;
I can't find the resources mentioned in this message:
And I don't have any idea on how to fix this error.
Env: