The AppComponent
shouldn't be part of the routing. It's what holds the root outlet.
{ path: '', component: AppComponent },
What you should do instead for the base path, is decide what component/path should be the default view, then redirect to the path. For instance if the page1 should be the default view, then do
{ path: '', redirectTo: 'page1', pathMatch: 'full' },
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…