11 questions
2
votes
0
answers
1k
views
Angular 5 webpack angular-router-loader not working and no errors
I'm facing an issue after angular 5 migration with lazy loading. In my webpack.config I'm using angular-router-loader but there is no error in console when I'm running in JIT mode and lazy modules ...
1
vote
0
answers
502
views
Lazy loading modules with angular-router-loader errors with cannot find module "."
Webpack has trouble finding a module that I am trying to lazy load with angular-router-loader.
I am using the following:
Webpack 2.2.1
Angular 5.2
angular-router-loader 0.8.2
Installed the angular-...
17
votes
2
answers
21k
views
Replace chunk name with module name in angular 4 lazy loading
I'm using angular-cli-1.6.3 for bundling my project.
I try to rename lazy loaded chunk name into valid module name. But it is not working. Code snippet given below,
{
path: 'lazy',
loadChildren: '....
9
votes
8
answers
21k
views
Angular 5 lazy loading Error: Cannot find module
I would like to use lazy loading but I can not understand why it does not work, it gives me error "Cannot find module".
This is my environment:
- Angular 5.2.1
- .NET Core 2
- Webpack 3.10.0
- angular-...
3
votes
2
answers
2k
views
Angular default path for an outlet
Given the following module, how can I create the routes so that when the application loads this module it will route to CComponent and have the AComponent loaded in the named router outlet search-...
0
votes
1
answer
162
views
Lazy Loading ngModules with own routes
I have this scenario.
I have two Angular Modules: AuthModule and DashModule. Each of these modules have their own .routing.tsfiles.
Then, each of the modules are imported into the AppModule at the ...
0
votes
1
answer
593
views
login component is taking to much time to load initially in angular 4
As you see, you have 5 in main module.In there when try to load login it is taking 14 seconds to load .I think login component is waiting for fulllayout component.
Could anyone please advice,if i ...
1
vote
1
answer
3k
views
Angular4. How to declare components/import modules for lazy loaded submodules?
For now for each rout of my app I am loading exact module. Here is how I am doing that :
const routes: Routes = [
{
path: '',
loadChildren: './pages/site-index/site-index-routing....
0
votes
1
answer
698
views
Whether Angular ui-router support different master layout pages(new Html Page) from nested view
Today I have created a ThemeForest like a website with angular and mvc , So I have a login page, it will load the Dashboard page, In the dashboard page have lots of icons, So i click the Icons , ...
0
votes
1
answer
568
views
Angular not able to navigate to child route
I am not able to go directly to the child route. my url is http://localhost:4201/home/profile but the router tracing starts with url: '/home’ instead of url: ‘/home/profile'
Router Event: ...
0
votes
2
answers
1k
views
How to loadChildren async with angular-router-loader
I have folder structure like:
- app
-core
-vacancy
in core folder I have app.routing.ts where I would like to async add route to vacancy.
I did it like:
export const routing = RouterModule....