Add falling animation

This commit is contained in:
schmelczerandras 2019-09-01 18:13:21 +02:00
parent 938f3def1f
commit db6a31dd85
20 changed files with 211 additions and 152 deletions

View file

@ -41,11 +41,17 @@ export class DataService extends Root<Page> {
childrenConstructor: null
}
};
for (let page of pages) {
new Page(this, page);
}
setTimeout(() => {
this.children$.subscribe(value => {
this.log();
});
}, 0);
this.children$.subscribe(value => {
this.log();
this._safeChildren.next(value);
this.save(0);
});
@ -60,11 +66,12 @@ export class DataService extends Root<Page> {
}
addPage(name: string) {
new Page(this, {
const page = new Page(this, {
name,
userData: {},
towers: []
});
page.addTower();
}
removePage(page: Page) {

View file

@ -49,13 +49,13 @@ export class StoreService<T> {
isDone: false
},
{
created: new Date(2020, 2, 15),
created: new Date(2019, 3, 15),
tag: 'go to school',
description: 'done it',
isDone: true
},
{
created: new Date(2021, 2, 15),
created: new Date(2019, 3, 15, 19),
tag: 'go to school',
isDone: false
}