File

libs/employee-display/src/employee-detail-view/employee-detail-view.component.ts

Metadata

selector employee-detail-view
templateUrl ./employee-detail-view.component.html

Index

Inputs

Inputs

employee

Type: IEmployee

import { Component, Input } from '@angular/core';

import { IEmployee } from '@enterprise-example/app-schema';

@Component({
  selector: 'employee-detail-view',
  templateUrl: './employee-detail-view.component.html'
})
export class EmployeeDetailViewComponent {
  @Input() employee: IEmployee;
}
<b>{{employee?.first_name}} {{employee?.last_name}}</b>
<p>Email: <b>{{employee?.email}}</b></p>
<p>Hours Worked: <b>{{employee?.hours_worked}}</b></p>
<p>Hourly Wage: <b>{{employee?.hourly_wage}}</b></p>
Legend
Html element
Component
Html element with directive

results matching ""

    No results matching ""