Getting Can't bind to 'routerLink' since it isn't a known property of 'a'. error in spite of referencing router moudule
i have managed to fix the issue. I had to add the routermodule to the imports of the moviemodule is the routerlinks are referred in the moviemodule
Import RouterModule
import { RouterModule } from '@angular/router';
import { NgModule } from '@angular/core';
import { RouterModule } from '@angular/router';
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
import { LayoutComponent } from './layout/layout.component';
@NgModule({
imports: [
RouterModule,
FormsModule,
ReactiveFormsModule,
],
declarations: [
LayoutComponent
],
exports: [
FormsModule,
ReactiveFormsModule,
],
entryComponents: []
})
export class SharedModule { }