diff --git a/default/src/app/app.component.html b/default/src/app/app.component.html index edc57bb..7f4a061 100644 --- a/default/src/app/app.component.html +++ b/default/src/app/app.component.html @@ -4,7 +4,11 @@

Stackbot

- - + + Report
+ Integrations
+ + +
diff --git a/default/src/app/app.module.ts b/default/src/app/app.module.ts index 396183c..f557ee0 100644 --- a/default/src/app/app.module.ts +++ b/default/src/app/app.module.ts @@ -4,6 +4,11 @@ import { CommonModule } from '@angular/common'; import { FormsModule } from '@angular/forms'; import { AngularFireModule, AuthProviders, AuthMethods } from 'angularfire2'; +import { + LocationStrategy, + HashLocationStrategy +} from '@angular/common'; + import { HTTP_PROVIDERS } from '@angular/http'; import { AUTH_PROVIDERS } from 'angular2-jwt'; import { FocusMeDirective } from './shared/focus-me.directive'; @@ -16,7 +21,9 @@ import { ReportComponent } from './report/index'; import { AuthService, AuthButtonComponent, AuthIntegrationsComponent } from './auth/index'; import { SearchComponent } from './search/index'; -// DO NOT DELETE: This is needed or the compiler says, Cannot find namespace 'firebase'. +import { routing, appRoutingProviders } from './app.routing'; + +// DO NOT DELETE: This is needed of the compiler says, Cannot find namespace 'firebase'. /* tslint:disable */ import * as firebase from 'firebase'; /* tslint:enable */ @@ -42,6 +49,8 @@ let providers = [ HTTP_PROVIDERS, AuthService, BackendService, + appRoutingProviders, + {provide: LocationStrategy, useClass: HashLocationStrategy} ]; let declarations = [ @@ -59,6 +68,7 @@ let imports = [ FormsModule, CommonModule, BrowserModule, + routing ]; diff --git a/default/src/app/app.routing.ts b/default/src/app/app.routing.ts new file mode 100644 index 0000000..91325b4 --- /dev/null +++ b/default/src/app/app.routing.ts @@ -0,0 +1,15 @@ +import { Routes, RouterModule } from '@angular/router'; +import {IntegrationsComponent} from './integrations.component'; +import { ReportComponent} from './report/index'; + +const appRoutes: Routes = [ + { path: 'report', component: ReportComponent }, + { path: 'integrations', component: IntegrationsComponent }, + { path: '', component: IntegrationsComponent }, +]; + +export const appRoutingProviders: any[] = [ + +]; + +export const routing = RouterModule.forRoot(appRoutes); diff --git a/default/src/app/integrations.component.html b/default/src/app/integrations.component.html new file mode 100644 index 0000000..1098323 --- /dev/null +++ b/default/src/app/integrations.component.html @@ -0,0 +1 @@ +

This is integrations page

\ No newline at end of file diff --git a/default/src/app/integrations.component.ts b/default/src/app/integrations.component.ts new file mode 100644 index 0000000..96017b8 --- /dev/null +++ b/default/src/app/integrations.component.ts @@ -0,0 +1,7 @@ +import { Component } from '@angular/core'; + +@Component({ + templateUrl: 'integrations.component.html' +}) + +export class IntegrationsComponent { } diff --git a/default/src/app/report/report.component.html b/default/src/app/report/report.component.html index 7e9eb2c..b038e44 100644 --- a/default/src/app/report/report.component.html +++ b/default/src/app/report/report.component.html @@ -1,4 +1,5 @@
+

Report

diff --git a/default/src/index.html b/default/src/index.html index bded6e9..cbc9c7c 100644 --- a/default/src/index.html +++ b/default/src/index.html @@ -1,6 +1,7 @@ + Stackbot