SyntaxFix
Write A Post
Hire A Developer
Questions
In my case i used directive, but hadn't imported it in my module.ts file. Import fixed it.