Optional
crudOptional
dataOptional
errorOptional
getGet form value (payload) based on given parameters for manipulation. Override the value of this method for custom payload handling.
Default value of this method is this code below, you can use it for custom modification if initial variables and pipes are not enough.
const getPayload = (): Dict => {
let payload: Dict = Object.assign({}, this.value);
if (form.removeEmptyValuesFromPayload) {
payload = removeEmptyValuesFromDict(
payload,
form.removeEmptyArraysFromPayload\
);
}
if (form.useDirtyAsPayload) {
payload = form.dirtyValue;
}
for (const pipe of form.payloadPipes) {
payload = pipe(payload);
}
return payload;
}
Optional
idOptional
loadingOptional
noOptional
payloadOptional
updateOptional
updateOptional
useOptional
view
Initial data for reactive form base class to feed to constructor.