Join Justin Schwartzenberger for an in-depth discussion in this video The component selector, part of Angular 2 Essential Training (2016).
- View Offline
- Exercise Files
- Code Practice
- [Voiceover] Angular uses the selector property…from the component metadata to…find a match from the dom based on an element name.…If we take a look at the app component,…we can see that it has a selector…with the value of app,…and if we flip over to our index.html file,…we can see that we have a dom element named app.…As we learned in an earlier lesson,…Angular kicks off with a Bootstrap call…that takes in the starting component.…This tells Angular to look over the initial dom on the page,…take the selector from the app component,…and find the first match.…
Angular finds the app element and…applies the app component to that element.…The Bootstrap function will only load…the component on the first match it finds.…It will not Bootstrap multiple instances…of the same component type.…This is a bit different from how components…nested in components work.…This will get covered in an upcoming lesson.…The app component selector is named app,…but what if you wanted to be more descriptive with it…and give it a multi-word name?…
- What is Angular?
- Setting up an Angular template
- Creating a component
- Displaying data
- Working with events
- Using two-way data binding
- Creating a subcomponent
- Using the built-in HTTP module
- Using the built-in router module
Skill Level Intermediate
AngularJS and WordPress: Building a Single-Page Applicationwith Roy Sivan31m 52s Intermediate
Building a Mobile App with AngularJS 1 and Ionicwith Ray Villalobos3h 31m Intermediate
1. Architecture Overview
3. Directives and Pipes
5. Dependency Injection and Services
Next steps1m 20s
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.