I have a large project with many files.
Now I want to use strictTemplates, so I added the following lines in:
...
"angularCompilerOptions": {
"fullTemplateTypeCheck": true,
"strictTemplates": true
...
Now I want to disable (or overwrite) strictTemplates rule for certain html-template files. Preferably direct in the file itself.
Something like:
// pseudo code
<!-- @ignore-strictTemplate -->
Is there a way to achieve this?
ThisAngular guide page does not help me at all.
According to angular documentation you can use the $any() type-cast function in certain contexts to opt out of type-checking for a part of the expression.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With