Angular - RxJS and Observables Fundamentals
Identify the error in this component code:
Template:
data$ = of('Test');
ngOnInit() {
this.data$.subscribe(value => console.log(value));
}Template:
<div>{{ data$ | async }}</div>