mirror of
https://github.com/akveo/ngx-admin.git
synced 2026-01-06 17:48:50 +01:00
chore(build): angular 2 webpack starter kit changes have been applied
This commit is contained in:
parent
3f2670f5c2
commit
260710b1ad
5 changed files with 15 additions and 18 deletions
|
|
@ -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
|
||||
};
|
||||
|
|
|
|||
|
|
@ -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));
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue