In Angular 6.1 the KeyValuePipe was introduced which allows you to iterate object properties:
<div *ngFor="let item of object | keyvalue">
{{item.key}}:{{item.value}}
</div>
More Related Contents:
- How to load external scripts dynamically in Angular?
- Property ‘entries’ does not exist on type ‘ObjectConstructor’
- How to implement RouteReuseStrategy shouldDetach for specific routes in Angular 2
- Importing lodash into angular2 + typescript application
- Angular 2 Sibling Component Communication
- JS : Convert Array of Strings to Array of Objects
- Using _ (underscore) variable with arrow functions in ES6/Typescript
- angular 2 how to return data from subscribe
- Angular4 – No value accessor for form control
- Property ‘value’ does not exist on type EventTarget in TypeScript [duplicate]
- Deep copy an array in Angular 2 + TypeScript
- How to call JavaScript functions from Typescript in Angular 5?
- ngOnInit not being called when Injectable class is Instantiated
- Angular 4 pass data between 2 not related components
- Angular 2 – communication of typescript functions with external js libraries
- npm WARN … requires a peer of … but none is installed. You must install peer dependencies yourself
- Get list of duplicate objects in an array of objects
- Rxjs toPromise() deprecated
- How to check for isBrowser in Angular 4
- Unraveling Angular 2 book, Chapter 1, Example 5
- How to achieve a debounce service on input keyup event in angular2 with rxjs
- Cast int to enum strings in Typescript
- Scroll to element on click in Angular 4
- Storing Objects in localStorage
- Subscribe to observable is returning undefined
- TypeScript TS7015: Element implicitly has an ‘any’ type because index expression is not of type ‘number’
- Google Sign-In for Websites and Angular 2 using Typescript
- Filter Array in Array by date between 2 dates
- binding data to angular checkbox
- import * as React from ‘react’; vs import React from ‘react’;