Skip to content

Commit 66dd8dd

Browse files
committed
fix
1 parent 1efd1b0 commit 66dd8dd

File tree

4 files changed

+9
-17
lines changed

4 files changed

+9
-17
lines changed

src/app/app.service.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,15 @@ import { HmrState } from 'angular2-hmr';
44
@Injectable()
55
export 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

src/app/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// App
2-
export * from './app.module';
32
export * from './app.routes';
43
export * from './app.service';
5-
export * from './app.component'
4+
export * from './app.component';
5+
export * from './app.module';

src/app/services/authentication.service.ts

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,9 @@ import { Injectable } from '@angular/core';
33
@Injectable()
44
export 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
}

src/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
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>

0 commit comments

Comments
 (0)