Commit c1998669 by Tuukka Kivilahti

nothing important

1 parent 1229cf09
......@@ -22,8 +22,8 @@
"../node_modules/bootstrap/dist/css/bootstrap.min.css"
],
"scripts": [],
"environmentSource": "environments/environment.ts",
"environments": {
"source": "environments/environment.ts",
"dev": "environments/environment.ts",
"hmr": "environments/environment.hmr.ts",
"prod": "environments/environment.prod.ts"
......
......@@ -3,8 +3,7 @@
"version": "0.0.0",
"license": "MIT",
"angular-cli": {},
"scripts": {
},
"scripts": {},
"private": true,
"dependencies": {
"@angular/common": "^2.3.1",
......@@ -25,6 +24,7 @@
"zone.js": "^0.7.2"
},
"devDependencies": {
"@angular/cli": "^1.0.0-beta.32.3",
"@angular/compiler-cli": "^2.3.1",
"@angularclass/hmr": "^1.2.2",
"@types/jasmine": "2.5.38",
......
<router-outlet></router-outlet>
<app-test ([counter])="counter"> </app-test>
{{counter}}
<a routerLink="/test" routerLinkActive="active">test</a>
<a routerLink="/vip/viplist" routerLinkActive="active">viplist</a>
......@@ -10,6 +10,8 @@ declare var window: any;
})
export class AppComponent {
counter = 4;
constructor(private router : Router, private zone : NgZone) {
......
......@@ -12,7 +12,6 @@ import { RouterModule, Routes } from '@angular/router';
import {TestComponent} from "./test/test.component";
import {MaterialModule} from "@angular/material";
const appRoutes: Routes = [
{ path: 'vip/viplist', component: ViplistComponent },
{ path: 'test', component: TestComponent }
......
export const environment = {
production: false,
hmr: true
......
export const environment = {
production: true,
hmr: false
......
......@@ -28,3 +28,4 @@ if (environment.hmr) {
} else {
bootstrap();
}
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!