Skip to content

Instantly share code, notes, and snippets.

@A-Kiwams
Created March 26, 2019 18:26
Show Gist options
  • Select an option

  • Save A-Kiwams/0ab10d5e4cf25b0bb9a1edfae5a90541 to your computer and use it in GitHub Desktop.

Select an option

Save A-Kiwams/0ab10d5e4cf25b0bb9a1edfae5a90541 to your computer and use it in GitHub Desktop.

Revisions

  1. A-Kiwams created this gist Mar 26, 2019.
    25 changes: 25 additions & 0 deletions app-routing.module.ts
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,25 @@
    import { NgModule } from '@angular/core';
    import { Routes, RouterModule } from '@angular/router';
    import { HomeComponent } from './home/home.component';
    import { AboutComponent } from './about/about.component';
    import { OffersComponent } from './offers/offers.component';
    import { PaymentsComponent } from './payments/payments.component';
    import { ContactComponent } from './contact/contact.component';
    import { HousingComponent } from './housing/housing.component';


    const routes: Routes = [
    { path: '', component: HomeComponent },
    { path: 'about', component: AboutComponent },
    { path: 'offers', component: OffersComponent },
    { path: 'housing', component: HousingComponent },
    { path: 'payments', component: PaymentsComponent },
    { path: 'contact', component: ContactComponent },
    ];


    @NgModule({
    imports: [RouterModule.forRoot(routes)],
    exports: [RouterModule]
    })
    export class AppRoutingModule { }