You can use built-in directive *ngFor in angular2.0.
<table>
<tr *ngFor="let x of names">
<td>{{ x.Name }}</td>
<td>{{ x.Country }}</td>
</tr>
</table>
More Related Contents:
- Iterate over object in Angular [duplicate]
- The Angular Compiler requires TypeScript >=3.4.0 and
- Angular2 nested template driven form
- How to add debounce time to an async validator in angular 2?
- caching results with angular2 http service [duplicate]
- How to instantiate and apply directives programmatically?
- How to share data/change between components
- How can get HttpClient Status Code in Angular 4
- Angular 4 – Update Meta tags dynamically for Facebook (Open graph)
- How to access a constant in an Angular 2 component and service?
- Is there a type for “Class” in Typescript? And does “any” include it?
- @firebase/firestore: Firestore (5.0.4): Could not reach Cloud Firestore backend. Backend didn’t respond within 10 seconds
- Is Angular 2’s Router broken when using HTML5 routes? [duplicate]
- How to extend / inherit components?
- How do I navigate to a parent route from a child route?
- Set base url for angular 2 http requests
- Detect changes in objects inside array in Angular2
- Angular2 – Interpolate string with html
- Angular 6 – Could not find module “@angular-devkit/build-angular”
- What are all the valid selectors for ViewChild and ContentChild?
- Lazy Loading BrowserModule has already been loaded
- No methods in http response object
- Redirect to a different component inside @CanActivate in Angular2
- How to import component into another root component in Angular 2
- ERROR in TypeError: Cannot read property ‘flags’ of undefined
- Class is using Angular features but is not decorated. Please add an explicit Angular decorator
- Angular 4 Material table highlight a row
- Angular Mat Select Multiple selectionchange finding which option was changed
- Angular 4: “Cannot find name ‘require’
- Angular2 Error: There is no directive with “exportAs” set to “ngForm”