Issue with angular html templates being mistaken for typescript sources
Hello,
I am encountering an issue with my current setup of intellij: HTML templates are being mistaken for typescript source files in my angular app.
I am therefore getting lots of errors such as : TS2304: Cannot find name 'dialog'. etc...
How can I fix that ?
Thanks in advance,

Please sign in to leave a comment.
Disabling Angular language service in Settings | Languages & Frameworks | TypeScript should help.
Similar issue is tracked at https://youtrack.jetbrains.com/issue/WEB-36373, but unfortunately, we haven't yet found a way to recreate it. Please can you share a sample project that shows it up?
Thanks a lot for your help Elena! The workaround fixed the issue.
Unfortunately I can't share my company's project.