I am new to angular
I have created the new project by using this link https://cli.angular.io/
Here the home page is displayed from appcomponent.html
I have created the new page in SRC >> pages >> index.html and index.ts
I import these pages in appcomponent.ts and appmodule.ts
How to set the default home page as index.
this is my app component page
import { Component } from '@angular/core';
import { Http, Headers } from '@angular/http';
import { IndexPage } from '../pages/index';
@Component({
selector: 'app-root',
templateUrl: './app.component.html',
styleUrls: ['./app.component.css']
})
export class MyApp {
title = 'app';
rootPage:any = IndexPage;
constructor( public http: Http ) {
}
}