From the course: Angular Essential Training
Unlock the full course today
Join today to access over 24,800 courses taught by industry experts.
Angular standalone components - Angular Tutorial
From the course: Angular Essential Training
Angular standalone components
- [Instructor] As of Angular version 14 you can use something called standalone components which lets you use files in your project without assigning them to a module. As of this recording, standalone components are still new and most existing projects will likely use modules to organize their code but standalone components are a powerful tool that make your code simpler and easier to work with. All angular developers should know how to use standalone components. I opened our project here in a GitHub code space. I talked about why we use code spaces earlier in this course, so for now, just think of them as an easy way to share and write code without installing anything on your local machine. Let's take a look at some code. I'll go to the source folder. Open the app folder, components, high scores, and click on high scores.component.TS to open the file. To mark any component, pipe, or directive as standalone, Add the…
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
-
-
-
-
-
-
-