scttcper / ngx-rightclick

Context Menu Service for Angular
https://ngx-rightclick.vercel.app
MIT License
81 stars 12 forks source link

No component factory found for SimpleMenuComponent. Did you add it to @NgModule.entryComponent #73

Open SukeshMarla opened 4 years ago

SukeshMarla commented 4 years ago

Hi, My angular version is 8.2 I am getting error as "No component factory found for SimpleMenuComponent. Did you add it to @NgModule.entryComponent" Here is the sample of my Module `const routes: Routes = [ { path: '', component: DepartmentFolderComponent }]; @NgModule({ declarations: [DepartmentFolderComponent, DepartmentFolderAddComponent,SimpleMenuComponent, DepartmentFolderListComponent], imports: [RouterModule.forChild(routes), SharedModule,ContextMenuModule], exports: [RouterModule], entryComponents: [DepartmentFolderAddComponent,SimpleMenuComponent] })

export class DepartmentFolderModule { }`

Inside DepartmentFolderListComponent I am using it

Kindly help