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 to know how it can be handled with keyvalue
Thanks in advance.