Skip to content

Instantly share code, notes, and snippets.

@asterixds
Created July 5, 2016 23:36
import { provideRouter, RouterConfig } from '@angular/router';
import {AuctionsComponent} from './auctions.component';
import {AuctionFormComponent} from './auction-form.component';
import { CanDeactivateGuard } from './interfaces';
export const routes: RouterConfig = [
{ path: 'auctions', component: AuctionsComponent },
{ path: 'newauction', component: AuctionFormComponent },
{ path: '', component: AuctionFormComponent }
];
export const APP_ROUTER_PROVIDERS = [
provideRouter(routes),
CanDeactivateGuard
];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment