I'm looking for a way to browse a JSON object into an HTML page with Angular2. In order to get each keys and each values.
In AngularJS, it's possible with the directive ng-repeat
:
<div ng-repeat="(key, data) in dataSets">{{key}}</div>
But in Angular2, i don't find a good way to do like this.
This is my object :
Object {name: "Rue Saint-Nestor", oneway: "yes", highway: "residential", maxspeed: "50", source:maxspeed: "FR:urban"}
I just want get the keys and values separately.
I know it may be perform with Object.keys()
but I want to use the directives if it's possible.
Thanks !