Search Posts

Category: angular2-routing

Maintain the user selection (ex : department) in session and throughout the angular application

User mapped to many departments which contains several items. While user logs in , he can select any one department (say dropdown) and then show respective items to the user. Application has more than five tabs(angular routing),in each tab i have to maintain the selection of department and throughout the session also (here we are using adfs login). So how can i proceed this in angular 2 ? Angular router parameter is enough for this. […]

Serving two different angular apps at one domain with wildcard in path

Say I have a Dog app written in AngularJS and I’m now adding a new Grooming sub-app written in Angular4 Right now I have nginx serving /api to a backend php server with the /api prefix rewritten off (so it doesn’t know it’s in a sub-path) and / served by the frontend AngularJS app. These are two distinct apps, each in their own server directory. This works fine right now. Now we are adding a […]

Dynamic Routes loading throwing error "No Factory found"

Hi I am trying to load routes dynamically returned by API server. But I get error “No Component factory found for component”.I have my components added in entryComponent here is my code. error: Uncaught (in promise): Error: No component factory found for ParentComponent. Did you add it to @NgModule.entryComponents? Error: No component factory found for ParentComponent. Did you add it to @NgModule.entryComponents? at noComponentFactoryError (core.es5.js:3202) at CodegenComponentFactoryResolver.webpackJsonp…/../../core/@angular/core.es5.js.CodegenComponentFactoryResolver.resolveComponentFactory (core.es5.js:3267) at RouterOutlet.webpackJsonp…/../../router/@angular/router.es5.js.RouterOutlet.activateWith (router.es5.js:5614) at ActivateRoutes.webpackJsonp…/../../router/@angular/router.es5.js.ActivateRoutes.activateRoutes (router.es5.js:4749) at […]