Skip to content

Instantly share code, notes, and snippets.

@matthieu-D
Last active December 10, 2016 17:30
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 matthieu-D/a228330cea3363ed238b6994ee43cb88 to your computer and use it in GitHub Desktop.
Save matthieu-D/a228330cea3363ed238b6994ee43cb88 to your computer and use it in GitHub Desktop.
import { NgModule } from '@angular/core';
import { RouterModule } from '@angular/router';
import { ProfileComponent } from './profile.component';
export const routes = [
{ path: 'create', component: ProfileComponent},
{ path: ':id', component: ProfileComponent}
];
@NgModule({
declarations: [
ProfileComponent
],
imports: [
RouterModule.forChild(routes)
]
})
export default class ProfileRoutingModule {
static routes = routes;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment