- killerString needs a number on first position
- string1 + string2 + killerstring need a combined length less than 15 (for e.g)
- I tried to "copy/ adapt" the
patternvalidator from angular sources.
How can I have a customValidator that a "dynamic data" information attached. There is no "hook" in input where I can attach my "dynamic data"
Do you have any suggestions?
With Syed's help I got close ... its very hacky and Im sure it does not work when you have multiple fields using my customLength validator:
https://stackblitz.com/edit/angular-4cvomu-zjlht5
Update 2
I've found a WORKING SOLUTION with help of this and that.
one thing that is still lacking:
- when string1 or string2 are "changed" this does not trigger validation in
killerInput...