Skip to content

$get is throwing error if path does not exist in the $data #781

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
shredmaster opened this issue Apr 15, 2015 · 0 comments
Closed

$get is throwing error if path does not exist in the $data #781

shredmaster opened this issue Apr 15, 2015 · 0 comments

Comments

@shredmaster
Copy link

I use the validator extension and I am getting exception if v-model expression is more than one level ie form.name.

this is the line where exception occurred
if(!vm.$get('validator.'+model))

Base on the documentation, $get method should return undefined instead of throwing an error. I check the exports.$get method and there is no exception handling logic either.

exports.$get = function (exp) {
  var res = expParser.parse(exp)
  if (res) {
          return res.get.call(this, this)
  }
}

why is $get method throwing error in this case?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants