Created
May 25, 2020 21:01
-
-
Save parzibyte/92f5c5a27a38fd8f9c32e8f1922c0aa3 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import {NgModule} from '@angular/core'; | |
import {Routes, RouterModule} from '@angular/router'; | |
import {ProductosComponent} from './productos/productos.component'; | |
import {ClientesComponent} from './clientes/clientes.component'; | |
import {VentasComponent} from './ventas/ventas.component'; | |
import {TiendaComponent} from './tienda/tienda.component'; | |
const routes: Routes = [ | |
{path: 'productos', component: ProductosComponent}, | |
{path: 'clientes', component: ClientesComponent}, | |
{path: 'ventas', component: VentasComponent}, | |
{path: 'tienda', component: TiendaComponent}, | |
]; | |
@NgModule({ | |
imports: [RouterModule.forRoot(routes, { | |
useHash: true, // <- Indicar que se use el hash | |
})], | |
exports: [RouterModule] | |
}) | |
export class AppRoutingModule { | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment