Create immutable storage

This commit is contained in:
schmelczerandras 2019-08-31 14:24:54 +02:00
parent 72eaca7a3b
commit ca0bf943f7
8 changed files with 229 additions and 8 deletions

View file

@ -1,4 +1,4 @@
import { ApplicationRef, Injectable } from '@angular/core';
import { Injectable } from '@angular/core';
import { StoreService } from './store.service';
import { Page } from '../model/page';
@ -22,7 +22,7 @@ export class DataService {
private hasLoaded = new Promise(resolve => (this.afterLoadFinished = resolve));
private afterLoadFinished: () => void;
constructor(private storeService: StoreService, private applicationRef: ApplicationRef) {
constructor(private storeService: StoreService) {
this.init();
}
@ -72,7 +72,6 @@ export class DataService {
private update() {
this.subscribers.map(f => f());
this.applicationRef.tick();
}
private loadActiveIndex() {