All Questions
4 questions
0
votes
1
answer
213
views
async pipe .find now allowed in Angular template?
Can anyone help me understand why this is not allowed in the Angular template?
<ng-container *ngIf="pt$ | async as pt">
<componenetOne[color]="pt.products.find(...
0
votes
1
answer
1k
views
Angular async pipe does not work for image source update
in this Angular component, I get an observable of user object, I try to verify on NgInit, whether the profile picture URL is defined. If not, I want to set a placeholder for that. But for some reason, ...
4
votes
2
answers
2k
views
Does async pipe automatically unsubscribe from observable, if I change the observable?
I'm trying to make a language pipe with ngrx.
component.html:
<p>{{1 | language: languageId | async }}</p>
language pipe:
constructor(private store:Store){}
transform(resourceId: ...
0
votes
1
answer
151
views
Error when sending 'user' observable from app component (async-pipe)
Here is my App.component.ts file from where I am sending 'user' observable to the 'header' component as input.
import { Component, OnDestroy, OnInit } from '@angular/core';
import { AuthService } ...