Skip to content

Latest commit

 

History

History
34 lines (31 loc) · 923 Bytes

README.md

File metadata and controls

34 lines (31 loc) · 923 Bytes

当&do=***变化时,加载相应组件

import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { APP_BASE_HREF } from '@angular/common';
// some page component
import { RunnerAppIndexComponent } from './runner/runner-index/runner-index';
import { RunnerPostComponent } from './runner/post/post';
import { We7RouterModule,We7RouterOutletComponent} from 'meepo-we7-router';
@NgModule({
  declarations: [
    RunnerAppIndexComponent,
    RunnerPostComponent
  ],
  imports: [
    BrowserModule,
    We7RouterModule.forRoot([{
      path: 'index',
      component: RunnerAppIndexComponent
    }, {
      path: 'post',
      component: RunnerPostComponent
    }])
  ],
  providers: [],
  entryComponents: [],
  bootstrap: [We7RouterOutletComponent]
})
export class AppModule { }