Skip to content

Instantly share code, notes, and snippets.

@easierbycode
Last active August 8, 2018 20:06
Show Gist options
  • Select an option

  • Save easierbycode/0ee05a5b177fc6564db725d7104e0c5d to your computer and use it in GitHub Desktop.

Select an option

Save easierbycode/0ee05a5b177fc6564db725d7104e0c5d to your computer and use it in GitHub Desktop.
ng2-fundamentals (github.com/jmcooper/ng2-fundamentals)
import { Routes } from '@angular/router'
import { EventsListComponent } from './events/event-details/event-details.component'
export const appRoutes:Routes = [
{ path : 'events', component: EventsListComponent },
{ path : '', redirectTo: '/events', pathMatch : 'full' }
]
{
"compilerOptions": {
"target": "es5",
"module": "commonjs",
"moduleResolution": "node",
"sourceMap": true,
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"removeComments": false,
"noImplicitAny": false,
"suppressImplicitAnyIndexErrors": true,
"typeRoots": [
"./node_modules/@types/"
]
},
"compileOnSave": true,
"exclude": [
"node_modules/*",
"**/*-aot.ts"
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment