6. Displaying Data

Displaying Data

You can display data by binding controls in an HTML template to properties of an Angular component.

In this page, you'll create a component with a list of heroes. You'll display the list of hero names and conditionally show a message below the list.

The final UI looks like this:

Final UI

Contents

The live example demonstrates all of the syntax and code snippets described in this page.

登录查看完整内容