Guest User

Untitled

a guest
Aug 21st, 2019
63
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import { NgModule } from '@angular/core';
  2. import { Routes, RouterModule } from '@angular/router';
  3.  
  4. import { AuthComponent } from './component/auth/auth.component';
  5.  
  6. const routes: Routes = [
  7. {
  8. path: 'login',
  9. component: AuthComponent
  10. },
  11. { path: '**', redirectTo: '/login', pathMatch: 'full' }
  12. ];
  13.  
  14. @NgModule({
  15. imports: [RouterModule.forRoot(routes)],
  16. exports: [RouterModule]
  17. })
  18. export class AppRoutingModule { }
RAW Paste Data