Skip to content

Instantly share code, notes, and snippets.

@BetterProgramming
Created August 26, 2019 13:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save BetterProgramming/3d967d6933312b79352886b39232f4bb to your computer and use it in GitHub Desktop.
Save BetterProgramming/3d967d6933312b79352886b39232f4bb to your computer and use it in GitHub Desktop.
import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';
import { HomePageComponent } from './home-page/home-page.component';
import { ContactFormPageComponent } from './contact-form-page/contact-form-page.component';
const routes: Routes = [
{ path: '', component: HomePageComponent },
{ path: 'contact', component: ContactFormPageComponent }
];
@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