Advertisement
Guest User

Untitled

a guest
May 10th, 2019
101
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. import { FormComponent } from './views/form/form.component';
  4. import { ServiceInfoComponent } from './views/service-info/service-info.component';
  5. import { CreatedServiceComponent } from './views/created-service/created-service.component';
  6.  
  7. const routes: Routes = [
  8.     { path: 'service-info', component: ServiceInfoComponent },
  9.     { path: 'created-service', component: CreatedServiceComponent },
  10.     { path: '', redirectTo: 'service-info', pathMatch: 'full'},
  11.     { path: 'form', component: FormComponent } 
  12. ];
  13.  
  14. @NgModule({
  15.   imports: [RouterModule.forRoot(routes)],
  16.   exports: [RouterModule]
  17. })
  18. export class AppRoutingModule { }
Advertisement
RAW Paste Data Copied
Advertisement