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
It works when I use 'pattern="^somePattern$"', but not when using dynamic attribute binding.
This is because the variable 'this.regex' is set in the constructor, where the pattern is still not present.
I think this can be resolved by setting the variable in an appropriate lifecycle hook.
Version: 2.2.2
The text was updated successfully, but these errors were encountered:
I am trying to build a component that allows passing in a dynamic pattern string value.
my.component.html:
It works when I use 'pattern="^somePattern$"', but not when using dynamic attribute binding.
This is because the variable 'this.regex' is set in the constructor, where the pattern is still not present.
I think this can be resolved by setting the variable in an appropriate lifecycle hook.
Version: 2.2.2
The text was updated successfully, but these errors were encountered: