Creating a Controller
In this lesson, you’ll learn how to create a controller and understand its specifications.
We'll cover the following
Command to create controller
We established that we need a songs
controller to be able to define a default value for showAddSong
, so let’s create one with the following command:
ember g controller bands/band/songs
Note: We have already created this component. You can type this command in the terminal widget below to try it out yourself. You can also try creating components with different names.
Create a free account to view this lesson.
By signing up, you agree to Educative's Terms of Service and Privacy Policy