From the course: Angular: Creating and Hosting a Full-Stack Site

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Create your first Angular component

Create your first Angular component

From the course: Angular: Creating and Hosting a Full-Stack Site

Start my 1-month free trial

Create your first Angular component

- [Instructor] So now that we've seen the basic directory structure of our Angular project, let's move on to creating the first component for our application. Components are the basic units of organization in Angular projects. They're the sort of modular pieces of the interface that we can define and display inside other components. And as I mentioned already, the app component that we looked at is the component in Angular applications that contains the rest of the components we create. The first component we're going to create for our buy and sell site is going to be the listings page, which will display all the currently available listings that a user can buy. Now, when creating a new component in our Angular projects, instead of creating all the files and setting up all the boilerplate code ourselves, Angular provides a script that we could run to generate all of that for us. So in order to generate our listings page…

Contents