g1er / Andrew

0 stars 0 forks source link

develop-ik-child-components: moved components inside parent app compo… #31

Closed IgorKulishov closed 6 years ago

IgorKulishov commented 6 years ago

Please take a look: 1) moved the following tags out from index.html into app.component.html (check two files: index.html and app.component.html below):

  <app-my></app-my>
  <app-my2></app-my2>

2) and since MyComponent component (selector app-my) and My2Component component (selector app-my2) are now enclosed into parent AppComponent component (as childs) we do not bootstrap them and so we remove them from bootstrap property in app.module.ts file:

bootstrap: [AppComponent]