#100975
peter.jak
Member

Hallo Christopher
I think this will not work.

  • The onReady event may be triggered before the angular async pipe gets its value.
  • The async pipe simply doesn’t work in menu. Let’s say I want do display a clock in the menu
export class SomeAngularComponent implements OnInit {
public currentTime = new Subject<string>();
ngOnInit(): void {
  setInterval(() => {
    const newTime = new Date().toISOString();
    this.currentTime.next(newTime);
  }, 1000);
}

In html template I have then
{{currentTime | async}}
The time will be never updated in Menu.
Peter