From 6decc50aacfaf77dab828fc7b02ba225a00d1c4b Mon Sep 17 00:00:00 2001 From: Matt Huntington Date: Wed, 12 Jul 2017 22:18:00 -0400 Subject: [PATCH] messing with heroes app --- day5/heroes/src/app/app-routing.module.js | 9 +++------ day5/heroes/src/app/app-routing.module.js.map | 2 +- day5/heroes/src/app/app-routing.module.ts | 3 --- day5/heroes/src/app/app.component.js | 2 +- day5/heroes/src/app/app.component.js.map | 2 +- day5/heroes/src/app/app.component.ts | 1 - day5/heroes/src/app/app.module.js | 2 -- day5/heroes/src/app/app.module.js.map | 2 +- day5/heroes/src/app/app.module.ts | 1 - day5/heroes/src/app/dashboard.component.html | 1 - day5/heroes/src/app/dashboard.component.js | 4 ---- day5/heroes/src/app/dashboard.component.js.map | 2 +- day5/heroes/src/app/dashboard.component.ts | 4 ---- day5/heroes/src/app/hero-detail.component.html | 1 - day5/heroes/src/app/hero-detail.component.js | 6 +----- day5/heroes/src/app/hero-detail.component.js.map | 2 +- day5/heroes/src/app/hero-detail.component.ts | 2 -- day5/heroes/src/app/hero.service.js | 3 +-- day5/heroes/src/app/hero.service.js.map | 2 +- day5/heroes/src/app/hero.service.ts | 1 - day5/heroes/src/app/hero.ts | 2 +- day5/heroes/src/app/heroes.component.html | 1 - day5/heroes/src/app/heroes.component.js | 10 ++-------- day5/heroes/src/app/heroes.component.js.map | 2 +- day5/heroes/src/app/heroes.component.ts | 4 ---- day5/heroes/src/app/mock-heroes.js | 1 - day5/heroes/src/app/mock-heroes.js.map | 2 +- day5/heroes/src/app/mock-heroes.ts | 3 --- 28 files changed, 17 insertions(+), 60 deletions(-) diff --git a/day5/heroes/src/app/app-routing.module.js b/day5/heroes/src/app/app-routing.module.js index 0963a7d..e78322a 100644 --- a/day5/heroes/src/app/app-routing.module.js +++ b/day5/heroes/src/app/app-routing.module.js @@ -7,15 +7,12 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key, }; Object.defineProperty(exports, "__esModule", { value: true }); var core_1 = require("@angular/core"); -var router_1 = require("@angular/router"); var dashboard_component_1 = require("./dashboard.component"); -var heroes_component_1 = require("./heroes.component"); var hero_detail_component_1 = require("./hero-detail.component"); var routes = [ - { path: '', redirectTo: '/dashboard', pathMatch: 'full' }, { path: 'dashboard', component: dashboard_component_1.DashboardComponent }, { path: 'detail/:id', component: hero_detail_component_1.HeroDetailComponent }, - { path: 'heroes', component: heroes_component_1.HeroesComponent } + { path: 'heroes', component: HeroesComponent } ]; var AppRoutingModule = (function () { function AppRoutingModule() { @@ -24,8 +21,8 @@ var AppRoutingModule = (function () { }()); AppRoutingModule = __decorate([ core_1.NgModule({ - imports: [router_1.RouterModule.forRoot(routes)], - exports: [router_1.RouterModule] + imports: [RouterModule.forRoot(routes)], + exports: [RouterModule] }) ], AppRoutingModule); exports.AppRoutingModule = AppRoutingModule; diff --git a/day5/heroes/src/app/app-routing.module.js.map b/day5/heroes/src/app/app-routing.module.js.map index 7d618f9..549c24a 100644 --- a/day5/heroes/src/app/app-routing.module.js.map +++ b/day5/heroes/src/app/app-routing.module.js.map @@ -1 +1 @@ -{"version":3,"file":"app-routing.module.js","sourceRoot":"","sources":["app-routing.module.ts"],"names":[],"mappings":";;;;;;;;AAAA,sCAAqD;AACrD,0CAAuD;AAEvD,6DAA6D;AAC7D,uDAA0D;AAC1D,iEAA+D;AAE/D,IAAM,MAAM,GAAW;IACrB,EAAE,IAAI,EAAE,EAAE,EAAE,UAAU,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,EAAE;IACzD,EAAE,IAAI,EAAE,WAAW,EAAG,SAAS,EAAE,wCAAkB,EAAE;IACrD,EAAE,IAAI,EAAE,YAAY,EAAE,SAAS,EAAE,2CAAmB,EAAE;IACtD,EAAE,IAAI,EAAE,QAAQ,EAAM,SAAS,EAAE,kCAAe,EAAE;CACnD,CAAC;AAMF,IAAa,gBAAgB;IAA7B;IAA+B,CAAC;IAAD,uBAAC;AAAD,CAAC,AAAhC,IAAgC;AAAnB,gBAAgB;IAJ5B,eAAQ,CAAC;QACR,OAAO,EAAE,CAAE,qBAAY,CAAC,OAAO,CAAC,MAAM,CAAC,CAAE;QACzC,OAAO,EAAE,CAAE,qBAAY,CAAE;KAC1B,CAAC;GACW,gBAAgB,CAAG;AAAnB,4CAAgB"} \ No newline at end of file +{"version":3,"file":"app-routing.module.js","sourceRoot":"","sources":["app-routing.module.ts"],"names":[],"mappings":";;;;;;;;AAAA,sCAAqD;AAErD,6DAA6D;AAC7D,iEAA+D;AAE/D,IAAM,MAAM,GAAW;IACrB,EAAE,IAAI,EAAE,WAAW,EAAG,SAAS,EAAE,wCAAkB,EAAE;IACrD,EAAE,IAAI,EAAE,YAAY,EAAE,SAAS,EAAE,2CAAmB,EAAE;IACtD,EAAE,IAAI,EAAE,QAAQ,EAAM,SAAS,EAAE,eAAe,EAAE;CACnD,CAAC;AAMF,IAAa,gBAAgB;IAA7B;IAA+B,CAAC;IAAD,uBAAC;AAAD,CAAC,AAAhC,IAAgC;AAAnB,gBAAgB;IAJ5B,eAAQ,CAAC;QACR,OAAO,EAAE,CAAE,YAAY,CAAC,OAAO,CAAC,MAAM,CAAC,CAAE;QACzC,OAAO,EAAE,CAAE,YAAY,CAAE;KAC1B,CAAC;GACW,gBAAgB,CAAG;AAAnB,4CAAgB"} \ No newline at end of file diff --git a/day5/heroes/src/app/app-routing.module.ts b/day5/heroes/src/app/app-routing.module.ts index bc070f6..cc4d49c 100644 --- a/day5/heroes/src/app/app-routing.module.ts +++ b/day5/heroes/src/app/app-routing.module.ts @@ -1,12 +1,9 @@ import { NgModule } from '@angular/core'; -import { RouterModule, Routes } from '@angular/router'; import { DashboardComponent } from './dashboard.component'; -import { HeroesComponent } from './heroes.component'; import { HeroDetailComponent } from './hero-detail.component'; const routes: Routes = [ - { path: '', redirectTo: '/dashboard', pathMatch: 'full' }, { path: 'dashboard', component: DashboardComponent }, { path: 'detail/:id', component: HeroDetailComponent }, { path: 'heroes', component: HeroesComponent } diff --git a/day5/heroes/src/app/app.component.js b/day5/heroes/src/app/app.component.js index 1889019..10abde5 100644 --- a/day5/heroes/src/app/app.component.js +++ b/day5/heroes/src/app/app.component.js @@ -16,7 +16,7 @@ var AppComponent = (function () { AppComponent = __decorate([ core_1.Component({ selector: 'my-app', - template: "\n

{{title}}

\n \n \n ", + template: "\n \n \n ", styleUrls: ['./app.component.css'], }) ], AppComponent); diff --git a/day5/heroes/src/app/app.component.js.map b/day5/heroes/src/app/app.component.js.map index ab070c2..e1c2103 100644 --- a/day5/heroes/src/app/app.component.js.map +++ b/day5/heroes/src/app/app.component.js.map @@ -1 +1 @@ -{"version":3,"file":"app.component.js","sourceRoot":"","sources":["app.component.ts"],"names":[],"mappings":";;;;;;;;AAAA,sCAA0C;AAc1C,IAAa,YAAY;IAZzB;QAaE,UAAK,GAAG,gBAAgB,CAAC;IAC3B,CAAC;IAAD,mBAAC;AAAD,CAAC,AAFD,IAEC;AAFY,YAAY;IAZxB,gBAAS,CAAC;QACT,QAAQ,EAAE,QAAQ;QAClB,QAAQ,EAAE,gPAOT;QACD,SAAS,EAAE,CAAC,qBAAqB,CAAC;KACnC,CAAC;GACW,YAAY,CAExB;AAFY,oCAAY"} \ No newline at end of file +{"version":3,"file":"app.component.js","sourceRoot":"","sources":["app.component.ts"],"names":[],"mappings":";;;;;;;;AAAA,sCAA0C;AAa1C,IAAa,YAAY;IAXzB;QAYE,UAAK,GAAG,gBAAgB,CAAC;IAC3B,CAAC;IAAD,mBAAC;AAAD,CAAC,AAFD,IAEC;AAFY,YAAY;IAXxB,gBAAS,CAAC;QACT,QAAQ,EAAE,QAAQ;QAClB,QAAQ,EAAE,wNAMT;QACD,SAAS,EAAE,CAAC,qBAAqB,CAAC;KACnC,CAAC;GACW,YAAY,CAExB;AAFY,oCAAY"} \ No newline at end of file diff --git a/day5/heroes/src/app/app.component.ts b/day5/heroes/src/app/app.component.ts index 564651e..f53018c 100644 --- a/day5/heroes/src/app/app.component.ts +++ b/day5/heroes/src/app/app.component.ts @@ -3,7 +3,6 @@ import { Component } from '@angular/core'; @Component({ selector: 'my-app', template: ` -

{{title}}