📜  角度显示另一个组件 - TypeScript 代码示例

📅  最后修改于: 2022-03-11 14:48:31.783000             🧑  作者: Mango

代码示例1
You register it in @NgModule declarations:

@NgModule({
  imports: [ BrowserModule ],
  declarations: [ App , MyChildComponent ],
  bootstrap: [ App ]
})
and then You just put it in the Parent's Template HTML as :