start of CSRF

This commit is contained in:
Jesse Lucas
2020-03-14 20:11:05 -04:00
parent af3d380b6a
commit ebf0541385
3 changed files with 33 additions and 3 deletions
+13 -1
View File
@@ -1,4 +1,5 @@
import { Component } from '@angular/core';
import { Component, OnInit } from '@angular/core';
import { SystemConfigService } from './system-config.service';
@Component({
selector: 'app-root',
@@ -7,4 +8,15 @@ import { Component } from '@angular/core';
})
export class AppComponent {
title = 'Tech UI';
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')
);
}
}