Added API and first UI

This commit is contained in:
2017-02-26 21:08:38 +01:00
parent 23e47005cf
commit 373fdf8417
33 changed files with 784 additions and 0 deletions
+16
View File
@@ -0,0 +1,16 @@
import { NgModule } from '@angular/core';
import { RouterModule, Routes } from '@angular/router';
import { DashboardComponent } from './dashboard.component';
import { BeerListComponent } from './beer-list.component';
import { BeerDetailComponent } from './beer-detail.component';
const routes: Routes = [
{ path: '', redirectTo: '/dashboard', pathMatch: 'full' },
{ path: 'dashboard', component: DashboardComponent },
{ path: 'detail/:id', component: BeerDetailComponent },
{ path: 'beers', component: BeerListComponent }
];
@NgModule({
imports: [ RouterModule.forRoot(routes) ],
exports: [ RouterModule ]
})
export class AppRoutingModule {}