From the course: Angular Essential Training

Unlock this course with a free trial

Join today to access over 25,300 courses taught by industry experts.

Angular component decorator

Angular component decorator - Angular Tutorial

From the course: Angular Essential Training

Angular component decorator

- [Speaker] Angular components are the main building blocks in all Angular applications. You can't use Angular without using components and all Angular developers should know what they are and how to use them. Components have four parts; an HTML template that defines the UI for the component, CSS styles you want to apply to the template. A TypeScript class that controls the component's behavior and a component selector that tells Angular where to put the component in the DOM. In my work, we use components to do mostly two things; to build the pages that users navigate to and to build small bits of UI we might want to reuse across multiple pages in the app. We write components in the same way no matter how we use them and what we talk about in this video will work for any use case you might have. Let's take a look at a component controller. We'll look at the HTML templates later in this course. I opened our project…

Contents