Reputation: 8913
When examining Angular 2 Apps like Google Maps or YouTube i never see any component selectors like or in html source.
Is this default for production build? Or is it always needed for Angular 2 to work?
I got three problems with this:
Upvotes: 0
Views: 1174
Reputation: 71911
It's always needed. Google Maps and YouTube are not made with angular. Check https://material.angular.io/. This site from google/angular is made with angular. If you inspect the elements you see all the selectors: <app-homepage>
, <router-outlet>
.. etc. That's just how it works. They are not going to port such big code bases as Google Maps or YouTube to a new framework :)
div
you get a component selector. So you know exactly what that component is doing.Upvotes: 1