Closed vacarsu closed 9 years ago
Doesn't look much like it's related to angular2-now. However, let's see if I can help you anyway...
At first looks I think your $scope.getReactively('vm.value')
is returning either an undefined
or an empty string. If that's the case then the error message makes sense, because you can't do a /*/
regex. There must be something before the *
. So, /a*/
would match any number of "a"s, for example.
But, if the above doesn't point you in the right direction, then please include the below with further questions:
I worked around it by using using an autorun function and only running the subscription if vm.value isn't null or undefined.
I get the following when trying to use $regex in a subscription.
Here is the the subscription.