Tartalomjegyzék

< Angular

Angular komponensek

Importálás

src/app/app.component.ts
import { EmployeeComponent } from './employee/employee.component';
 
//...
 
 
@Component({
//...
  imports: [RouterOutlet,EmployeeComponent],
//...
})

Beépítés

A root komponensbe építjük az employee komponenst:

src/app/app.component.html
<app-employee></app-employee>