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 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…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
Angular decorators2m 7s
-
Angular modules4m 52s
-
(Locked)
Angular component decorator4m 34s
-
(Locked)
Angular component classes3m 32s
-
(Locked)
Reference variables and data binding in Angular templates5m 2s
-
(Locked)
Structural directives in Angular templates5m 59s
-
(Locked)
Angular standalone components4m 38s
-
(Locked)
Angular without ZoneJS (Zoneless)46s
-
-
-
-
-
-
-