chore(build): angular 2 webpack starter kit changes have been applied

This commit is contained in:
tibing 2016-10-14 20:10:08 +03:00
parent 3f2670f5c2
commit 260710b1ad
5 changed files with 15 additions and 18 deletions

View file

@ -13,7 +13,7 @@ import { routing } from './app.routing';
// App is our top level component
import { App } from './app.component';
import { AppState, InteralStateType } from './app.service';
import { AppState, InternalStateType } from './app.service';
import { GlobalState } from './global.state';
import { NgaModule } from './theme/nga.module';
import { PagesModule } from './pages/pages.module';
@ -25,7 +25,7 @@ const APP_PROVIDERS = [
];
type StoreType = {
state: InteralStateType,
state: InternalStateType,
restoreInputValues: () => void,
disposeOldHosts: () => void
};

View file

@ -1,12 +1,12 @@
import { Injectable } from '@angular/core';
export type InteralStateType = {
export type InternalStateType = {
[key: string]: any
};
@Injectable()
export class AppState {
_state: InteralStateType = {};
_state: InternalStateType = {};
constructor() {
}
@ -34,7 +34,7 @@ export class AppState {
}
private _clone(object: InteralStateType) {
private _clone(object: InternalStateType) {
// simple object clone
return JSON.parse(JSON.stringify(object));
}