Lazy loading can not find my module in angle

0

This is trying to do lazy loading but is returning that my module is not found.

My main app.routing.ts:

import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';

import { LoginComponent } from './components/login/login.component';

const appRoutes: Routes = [
  { path: '', component: LoginComponent },
  { path: 'admin', loadChildren:'app/components/dashboard/dashboard.module#DashboardModule' } //Aplicado lazy loading(carregamento por)


];

@NgModule({
  imports:[RouterModule.forRoot(appRoutes)],
  exports: [RouterModule]
})
export class AppRoutingModule{}

'
  

ERROR in Could not resolve module   app / components / dashboard / dashboard.module relative to   /home/renato/Desktop/backoffice/jbackoffice/src/app/app.routing.module.t

As you can see from the image, I'm already specifying the correct path but you still can not find my module

    
asked by anonymous 11.07.2018 / 03:34

0 answers