Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Store
- this.widgetsStore.setActive(activeId);
- this.widgetsStore.setActive({ prev: true }); // Set the prev entity as active
- this.widgetsStore.setActive({ next: true } ); // Set the next entity as active
- this.widgetsStore.updateActive(active => {
- return {
- config: {
- ...active.config,
- date
- }
- }
- });
- // Query
- this.active$ = this.widgetsQuery.selectActive();
- this.active$ = this.widgetsQuery.selectActive(active => active.title);
- this.activeId$ = this.widgetsQuery.selectActiveId();
- this.active = this.widgetsQuery.getActive();
- this.activeId = this.widgetsQuery.getActiveId();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement