SyntaxFix
Write A Post
Hire A Developer
Questions
In the current component's module import RouterModule.
Like:-
import {RouterModule} from '@angular/router'; @NgModule({ declarations:[YourComponents], imports:[RouterModule]
...
It helped me.