question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

createViewModel and computed getters on model

See original GitHub issue

It looks like the view-model created by createViewModel only inherits the obseravable and not the computed properties of the underlying model. Seems like a gotcha unless I’m missing something?

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:4
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
carlosagsmendescommented, May 16, 2018

Will this PR be merged soon?

0reactions
kayakyakrcommented, Jul 12, 2018

Yup, I believe you’re correct. getOwnPropertyNames works on an object, but not on an es6 class

Read more comments on GitHub >

github_iconTop Results From Across the Web

Anyway, this is how to use v-model with Vuex. Computed ...
PageForm component with computed getters and setters with v-model. We have a v-model and no more input events + value attribute bindings.
Read more >
Angular 2: How to bind Input to model property with getter and ...
I have a model that is comprised of a few key properties, and then several other properties that are computed based off those...
Read more >
Android MVVM LiveData Data Binding - DigitalOcean
We've defined our Model in the User.java class: ... ViewModelProviders.of can be used to create ViewModel instance too as done above.
Read more >
Simplify Your Vue Components with Computed Setters - Medium
One of the main core concepts of Vue.js is computed properties. ... fullName is what we call a computed getter — we use...
Read more >
Getters and setters - Flutter by Example
Getters. Getters are often useful to set computed properties. In other words, instance variables that rely on other, non-constant variables.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found