How to store ` keyvalue` in the template variable

I am trying to use the keyvalue and print in template. but not able to assign with variable. what would be the correct approach here? <h1 let item = (data|keyvalue)>New value {{item.key}}</h1> – not working in my ts file there is a data: data = { value: ‘info’ }; I can directly print this. but… Read More How to store ` keyvalue` in the template variable

Why am I getting this error? TypeError: this.lasService.getLasDropDownOptions(…).pipe is not a function

This returns the dropdown options available to be displayed. I’m assuming the problem is with the .pipe but I can’t seem to correct it. return this.lasService.getLasDropDownOptions(true) .pipe(takeUntil(this.unsubscribe)) .subscribe((lasOptions) => { return resolve(lasOptions.map((option) => { return option || []; })); }); } getLasDropDownOptions(refresh) { return this.getLasData(refresh) .pipe(takeUntil(this.unsubscribe)) .subscribe((response) => { return response.map((las) => { las.displayValue =… Read More Why am I getting this error? TypeError: this.lasService.getLasDropDownOptions(…).pipe is not a function