I've been watching some tutorials on Angular 2. I'm confused on bootstrapping components. If I want to create multiple page applications, and don't need that root component, how would I go about doing that? I see how it would work for single page applications.
This is my Main.Ts File.
import { bootstrap } from 'angular2/platform/browser';
import { AppComponent } from './app.component';
bootstrap(AppComponent);
Here is my app.component.ts file.
import {Component} from 'angular2/core';
@Component({
selector: 'pm-app',
template: '<h1>{{PageTitle}}</h1>'
})
export class AppComponent {
PageTitle: string = "Test";
}
If I wanted to navigate to a page other than let's say index.html, and have it load a different component without bringing in the AppComponent, how would I go about doing that? In Angular 1+, it was easy since I just referenced the controller on the HTML page that I wanted to use. How would I just reference the component I want to use on a different page?
Thanks. Trying to wrap my head around angular 2.