import { IAppModel } from "../components/helper_interfaces" ; import { AppUtils } from "../components/appUtils" ; export class Form implements IAppModel { constructor ( init ? ) { if ( init ) { this . initialize ( init ) ; } } email : string ; password : string ; invalid : boolean ; errorMessage : string ; initialize ( init ) { if ( init ) { AppUtils . objectAssignSafe ( this , init ) ; } } isValid ( ) { return ! ! this . email && ! ! this . password ; } }