Newer
Older
import { Component, OnInit } from '@angular/core';
import { ApiRootFacade, ApiRootResource } from '@goofy-client/api-root-shared';
import { createEmptyStateResource, StateResource } from '@goofy-client/tech-shared';

OZGCloud
committed
import { Observable, of } from 'rxjs';
@Component({

OZGCloud
committed
selector: 'goofy-client-user-settings-container',
templateUrl: './user-settings-container.component.html',
styleUrls: ['./user-settings-container.component.scss'],

OZGCloud
committed
})
export class UserSettingsContainerComponent implements OnInit {

OZGCloud
committed
apiRoot$: Observable<StateResource<ApiRootResource>> = of(createEmptyStateResource<ApiRootResource>());

OZGCloud
committed
constructor(private apiRootFacade: ApiRootFacade) { }

OZGCloud
committed
ngOnInit(): void {
this.apiRoot$ = this.apiRootFacade.getApiRoot();