src/modules/lesson/detail/data-service.service.ts
saveFormData |
saveFormData(formData: any)
|
Returns:
void
|
getFormData |
getFormData()
|
Returns:
any
|
Private formData |
formData: |
import { Injectable } from '@angular/core';
@Injectable({
providedIn: 'root'
})
export class DataServiceService {
private formData = {
name: '',
weight: '',
height: '',
gender: '',
};
saveFormData(formData: any) {
this.formData = formData;
}
getFormData(): any {
return this.formData;
}
}