I am new to angular, From the documentation i learned that we can launch the angular app by the bootstrap the root module, then angular can launch the app by creating an instance of app component and find the selector of this component in index.html and put the view of that root component,
My question is whether angular use this same strategy for all components,
for example does this create all the components same time or create components based directives declared on template.
1) i have 2 components such as
app component,navbar component2) app component have<app-navbar></app-navbar> on its template
From my understanding
Angular first create root component and paste that component view in the root component selector(app-root) on index.html , if that root component view has another selector called app-navbar then only it create instance of navbar.component and paste that view in selector.correct me if i am wrong?