...

/

Implementing the Component

Implementing the Component

In this lesson, you’ll learn how to create and implement the component for our Ember application.

Defining the component’s properties

The first step is to use an Ember-CLI generator to create a new component with the following command:

ember g component star-rating --with-component-class

Run the terminal widget below to see the output of the above command.

Terminal 1
Terminal
Loading...

By default, the command only creates the component’s template, which is a .hbs file, so we also passed in the with-component-class flag to have a .js file created. They are both added in the app’s app/components folder. ...

Access this course and 1400+ top-rated courses and projects.