yes!!
you can use setTimeout() to test it.
import { Component, OnInit } from '@angular/core'; import { Observable, of } from 'rxjs'; export interface Person { name: string; place: string; } @Component({ selector: 'app-demo', templateUrl: './demo.component.html', styleUrls: ['./demo.component.scss'] }) export class DemoComponent implements OnInit { myself$: Observable<Person>; constructor() { } ngOnInit() { this.myself$ = of({ name: 'Amrish', place: 'Bangalore' }) setTimeout(() => { this.myself$ = of({ name: 'John Doe', place: 'Bangalore' }) }, 3000) } }
How can I update this data after form submission, for instance?
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
yes!!
you can use setTimeout() to test it.
How can I update this data after form submission, for instance?