1 import { Component } from '@angular/core';
3 import { Observable } from 'rxjs';
5 import { ConfigService, IConfig, IProject } from "../services/config.service";
10 templateUrl: './devel.component.html',
11 styleUrls: ['./devel.component.css'],
14 export class DevelComponent {
17 config$: Observable<IConfig>;
19 constructor(private configSvr: ConfigService) {
23 this.config$ = this.configSvr.conf;
24 this.config$.subscribe((cfg) => {
25 if ("projects" in cfg) {
26 this.curPrj = cfg.projects[0];