Skip to content

Commit f7c2ec9

Browse files
Ismaestroiramos
authored and
iramos
committed
fix(migration): added file removed and json server module
1 parent c71e1d0 commit f7c2ec9

File tree

2 files changed

+22
-0
lines changed

2 files changed

+22
-0
lines changed

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@
7878
"http-server": "^0.9.0",
7979
"ie-shim": "^0.1.0",
8080
"jasmine-core": "^2.5.2",
81+
"json-server": "^0.9.4",
8182
"reflect-metadata": "^0.1.9",
8283
"rxjs": "~5.0.2",
8384
"zone.js": "~0.7.4"

src/app/app-routing.module.ts

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
import { NgModule } from '@angular/core';
2+
import { RouterModule, Routes } from '@angular/router';
3+
4+
import { HeroTopComponent } from './heroes/hero-top/hero-top.component';
5+
6+
const routes: Routes = [
7+
{ path: '', redirectTo: '/', pathMatch: 'full' },
8+
{ path: '', component: HeroTopComponent }
9+
];
10+
11+
@NgModule({
12+
imports: [
13+
RouterModule.forRoot(routes)
14+
],
15+
exports: [
16+
RouterModule
17+
]
18+
})
19+
20+
export class AppRoutingModule {
21+
}

0 commit comments

Comments
 (0)