silveoj
silveoj
@Romakita it looks good. 1. What about multiple messages in Example 2: ``` @Required() @RequiredMsg('should have a string property "bar"') @Pattern(/aaa/) // another validation @PatternMsg('pattern should match format ...') //...
I debug it for not first setValue/patchValue. In some places imask use value as string, in other places - as number. I use my UI wrapper for input element. And...
``` myInputKey: { key: 'myOutputKey', default: () => new Array(), transform: (values: MyInterface[]) => // values can be null. We don't check it because we define 'default' function. values.map(...) },...
It's safer use ``` // eslint-disable-next-line rxjs-angular/prefer-takeuntil export class MyComponent ... ``` or ``` // eslint-disable-next-line rxjs-angular/prefer-takeuntil public ngOnDestroy() { super.ngOnDestroy(); } ```