syncthing/src/app/app.component.ts

23 lines
666 B
TypeScript
Raw Normal View History

2020-03-14 03:11:05 +01:00
import { Component, OnInit } from '@angular/core';
import { SystemConfigService } from './system-config.service';
2020-03-10 15:57:02 +01:00
@Component({
selector: 'app-root',
templateUrl: './app.component.html',
styleUrls: ['./app.component.scss']
})
export class AppComponent {
2020-03-11 03:51:50 +01:00
title = 'Tech UI';
2020-03-14 03:11:05 +01: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 15:57:02 +01:00
}