You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
error: Can't bind to 'validateRootForm' since it isn't a known property of 'form'.
no suites ever run, so validation is true all the time
exportconstmyFormModelSuite=staticSuite((model: MyFormModel,field?: string)=>{if(field){// Needed to not run every validation every timeonly(field);}test('firstName','First name is required',()=>{enforce(model.generalInfo?.firstName).isNotBlank();});test('firstName','First name is to short',()=>{console.log('model.generalInfo?.firstName',model.generalInfo?.firstName);enforce(model.generalInfo?.firstName).longerThanOrEquals(4);});test('lastName','Last name is required',()=>{enforce(model.generalInfo?.lastName).isNotBlank();});});
The text was updated successfully, but these errors were encountered:
The text was updated successfully, but these errors were encountered: