diff options
author | sowgro <tpoke.ferrari@gmail.com> | 2025-03-31 00:38:37 -0400 |
---|---|---|
committer | sowgro <tpoke.ferrari@gmail.com> | 2025-03-31 00:38:37 -0400 |
commit | cfe40fa1e416fbf4586ef36b63a145453a4d6224 (patch) | |
tree | 8453977b736c1b015e24e8dfed0dbceb87c0fce1 /ufund-ui/src/app/app.component.ts | |
parent | aa5610d0f56c2a048212b3bd3a9ca5671ec855fa (diff) | |
download | JellySolutions-cfe40fa1e416fbf4586ef36b63a145453a4d6224.tar.gz JellySolutions-cfe40fa1e416fbf4586ef36b63a145453a4d6224.tar.bz2 JellySolutions-cfe40fa1e416fbf4586ef36b63a145453a4d6224.zip |
Continue working on css (1)
Diffstat (limited to 'ufund-ui/src/app/app.component.ts')
-rw-r--r-- | ufund-ui/src/app/app.component.ts | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/ufund-ui/src/app/app.component.ts b/ufund-ui/src/app/app.component.ts index 86717c4..7d9afcd 100644 --- a/ufund-ui/src/app/app.component.ts +++ b/ufund-ui/src/app/app.component.ts @@ -1,7 +1,12 @@ -import {Component, OnInit, Inject} from '@angular/core'; -import {BehaviorSubject} from 'rxjs'; +import {Component, OnInit, Inject, ViewChild} from '@angular/core'; +import {BehaviorSubject, Observable} from 'rxjs'; import { DOCUMENT } from '@angular/common'; import {AuthService} from './services/auth.service'; +import {ToastType} from './services/toasts.service'; + +interface ToastProps { + type: ToastType, message: string, action?: {label: string, onAction: () => void} +} @Component({ selector: 'app-root', @@ -12,6 +17,8 @@ import {AuthService} from './services/auth.service'; export class AppComponent implements OnInit { // title = 'ufund-ui'; currentUser$: BehaviorSubject<string> = new BehaviorSubject<string>("Logged out."); + toast = new BehaviorSubject<ToastProps>({type: ToastType.INFO, message: "testToast"}) + constructor( private authService: AuthService, @@ -31,4 +38,6 @@ export class AppComponent implements OnInit { }) } + + } |