Files
syncthing/src/app/app.component.ts
T

23 lines
666 B
TypeScript
Raw Normal View History

2020-03-13 22:11:05 -04:00
import { Component, OnInit } from '@angular/core';
import { SystemConfigService } from './system-config.service';
2020-03-10 10:57:02 -04:00
@Component({
selector: 'app-root',
templateUrl: './app.component.html',
styleUrls: ['./app.component.scss']
})
export class AppComponent {
2020-03-10 22:51:50 -04:00
title = 'Tech UI';
2020-03-13 22:11:05 -04:00
constructor(private systemConfigService: SystemConfigService) { }
ngOnInit(): void {
console.log("app component init");
this.systemConfigService.getSystemConfig().subscribe(
x => console.log('Observer got a next value: ' + x),
err => console.error('Observer got an error: ' + err),
() => console.log('Observer got a complete notification')
);
}
2020-03-10 10:57:02 -04:00
}