Non-angular paths 2

0

I have a system with these routes.

import { Routes } from '@angular/router';

import { FullComponent } from './layouts/full/full.component'; import { AppBlankComponent } from './layouts/blank/blank.component';

export const AppRoutes: Routes =  [   {
    path: '',
    component: FullComponent,
    children: 
    [
      {
        path: 'arquivo',
        loadChildren: './paginas/arquivo/arquivo.module#ArquivoModule'  
      },
      {
        path: 'declaracao',
        loadChildren: './paginas/declaracao/declaracao.module#DeclaracaoModule'  
      },
      {
        path: 'usuario',
        loadChildren: './paginas/usuario/usuario.module#UsuarioModule'  
      },
      {
        path: 'parametro',
        loadChildren: './paginas/parametro/parametro.module#ParametroModule'  
      },
      {
        path: 'endereco',
        loadChildren: './paginas/endereco/endereco.module#EnderecoModule'  
      },
      {
        path: 'municipioIntegrado',
        loadChildren: './paginas/municipio-integrado/municipio-integrado.module#MunicipioIntegradoModule'

      },
      {
        path: 'contribuinte',
        loadChildren: './paginas/banco/banco.module#BancoModule'  
      },
      {
        path: 'dashboard',
        loadChildren: './dashboards/dashboards.module#DashboardsModule'  
      }
    ]   },   {
    path: '',
    component: AppBlankComponent,
    children: 
    [
      {
        path: 'authentication',
        loadChildren: './authentication/authentication.module#AuthenticationModule'
      }
    ]   },   {
    path: '**',
    redirectTo: '404'    } ];

When I go into the link system, it will not go to the correct page that is a href="http: // localhost: 4200 / # / dashboard"> link

instead of

 {
    path: 'dashboard',
    loadChildren: './dashboards/dashboards.module#DashboardsModule'  
 }

I've tried it already

 {
    path: '',
    loadChildren: './dashboards/dashboards.module#DashboardsModule'  
 }

Where am I going wrong?

    
asked by anonymous 14.05.2018 / 22:25

0 answers