Created
February 18, 2019 16:16
-
-
Save israeljrs/0a5103d03b4c6c908a448d5d0306e0bd to your computer and use it in GitHub Desktop.
Modulo de exemplo para home do projeto
This file contains hidden or 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 { HomePageComponent } from './home-page/home-page.component'; | |
const routes: Routes = [ | |
{ path: '', component: HomePageComponent }, | |
{ path: '**', redirectTo: '' } | |
]; | |
@NgModule({ | |
imports: [RouterModule.forRoot(routes)], | |
exports: [RouterModule] | |
}) | |
export class AppRoutingModule { } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment