Moving to strict.
Create form has now moved to constructor and route data subscribe is type safe.
This commit is contained in:
@@ -31,10 +31,6 @@ export class EmployeeFunctionsComponent {
|
||||
private auth: AuthService,
|
||||
private ser: EmployeeFunctionsService,
|
||||
) {
|
||||
this.createForm();
|
||||
}
|
||||
|
||||
createForm() {
|
||||
const startDate = moment().date(1);
|
||||
const finishDate = moment().date(startDate.daysInMonth());
|
||||
this.creditSalaryForm = this.fb.group({
|
||||
|
||||
Reference in New Issue
Block a user