File tree Expand file tree Collapse file tree 4 files changed +9
-17
lines changed
Expand file tree Collapse file tree 4 files changed +9
-17
lines changed Original file line number Diff line number Diff line change @@ -4,15 +4,15 @@ import { HmrState } from 'angular2-hmr';
44@Injectable ( )
55export class AppState {
66 // HmrState uis used by HMR to track the any state during reloading
7- @HmrState ( ) state = { } ;
7+ @HmrState ( ) _state = { } ;
88
99 constructor ( ) {
1010
1111 }
1212
1313 // already return a clone of the current state
1414 get state ( ) {
15- return this . state = this . clone ( this . state ) ;
15+ return this . _state = this . clone ( this . _state ) ;
1616 }
1717
1818 // never allow mutation
@@ -23,13 +23,13 @@ export class AppState {
2323
2424 get ( prop ?: any ) {
2525 // use our state getter for the clone
26- const state = this . state ;
26+ const state = this . _state ;
2727 return state [ prop ] || state ;
2828 }
2929
3030 set ( prop : string , value : any ) {
3131 // internally mutate our state
32- return this . state [ prop ] = value ;
32+ return this . _state [ prop ] = value ;
3333 }
3434
3535
Original file line number Diff line number Diff line change 11// App
2- export * from './app.module' ;
32export * from './app.routes' ;
43export * from './app.service' ;
5- export * from './app.component'
4+ export * from './app.component' ;
5+ export * from './app.module' ;
Original file line number Diff line number Diff line change @@ -3,17 +3,9 @@ import { Injectable } from '@angular/core';
33@Injectable ( )
44export class Authentication {
55
6- private authenticated = false ;
6+ authenticated = false ;
77
88 constructor ( ) {
99 }
1010
11- get authenticated ( ) {
12- return this . authenticated ;
13- }
14-
15- set authenticated ( authenticated : boolean ) {
16- this . authenticated = authenticated ;
17- }
18-
1911}
Original file line number Diff line number Diff line change 4545
4646< body >
4747
48- < app >
48+ < sv- app>
4949 < div class ="container " id ="loading-container ">
5050 < div class ="col-md-4 col-md-offset-4 ">
5151 < div class ="panel panel-default ">
@@ -64,7 +64,7 @@ <h3 class="panel-title"><strong>Loading ..</strong></h3>
6464 </ div >
6565 </ div >
6666 </ div >
67- </ app >
67+ </ sv- app>
6868
6969 <!-- Google Analytics: change UA-71073175-1 to be your site's ID -->
7070 < script >
You can’t perform that action at this time.
0 commit comments