Rendering the Component
In this lesson, you’ll learn how the components are rendered in an Ember application.
Output “ASCII stars”
We now have the necessary supporting code for rendering our star-rating widget. The next step is to lay out in the template what should be rendered. Just to see that it works, let’s output “ASCII stars” as a first step: "X"s for full stars, and "O"s for empty ones. The newly added lines of code are highlighted, and the removed lines of code are commented.
The above use of if is called in-line if. It’s the equivalent ...
Access this course and 1800+ top-rated courses and projects.