1 import {Component, OnInit} from '@angular/core';
2 import {DesignerStore} from '../designer.store';
5 selector: 'app-functions',
6 templateUrl: './functions.component.html',
7 styleUrls: ['./functions.component.css']
9 export class FunctionsComponent implements OnInit {
10 viewedFunctions: ModelType[] = [];
12 constructor(private designerStore: DesignerStore) {
14 this.designerStore.state$.subscribe(state => {
16 if (state.functions) {
17 this.viewedFunctions = state.functions;
23 this.designerStore.getFuntions();