Closed ab-su-rd closed 8 years ago
Not sure. Need to test this scenario.
In the meantime you can probably use v-show
instead.
v-show
has the same behaviour, i'm afraid.
same behaviour in the sense that, i'm seeing the same error as with truthy v-if
Ok. I've tested both v-if
and v-show
and was unable to reproduce.
I believe your issue has nothing to do with those directives.
The error Cannot read property 'get' of undefined
Probably stems from the fact that you didn't include vue-resource
and so this.$http
is undefined
Indeed!
I was missing vue-resource
Thank you very much for pointing it out and for what you are doing here!
could you give an example for wrapping the v-server-table with a v-if please?
i am finding that putting the v-if directive with false never triggers the network call to fetch data, and setting it to true triggers the loading event, but vue-tables errors out with
Cannot read property 'get' of undefined
not seeing a network call in either case.my code
btw, i'm using the library after compiling it with browserify sections from package.json:
i also had to set .babelrc, for some reason