Can anyone lend a hand? I'm facing a challenge with this function that is crucial for the application.
Typescript File
get $approved(): Observable<boolean> {
return this.$entries.map(entries => {
if (entries.length > 0) {
return false;
} else {
entries.every(entry => {
return entry.approved != null;
})
}
});
}
HTML file
<h1 *ngIf="$approved | async">PLANT</h1>
The issue here is that the H1 tag never gets displayed, and I'm unsure why.