Created
May 3, 2022 08:32
-
-
Save lorenzojkrl/d8a25651301300db0cf2835fee13dc72 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { Component, OnInit } from '@angular/core'; | |
import { Observable, of } from 'rxjs'; | |
@Component({ | |
selector: 'app-root', | |
templateUrl: './app.component.html', | |
}) | |
export class AppComponent implements OnInit { | |
numbers$: Observable<number[]>; | |
ngOnInit() { | |
this.numbers$ = of([1, 3, 5, 7, 9]); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment