vue-model icon indicating copy to clipboard operation
vue-model copied to clipboard

Demo

Open aarondfrancis opened this issue 8 years ago • 10 comments

People seem to like demos over docs.

aarondfrancis avatar Oct 12 '17 19:10 aarondfrancis

Probably needs a backend to respond to requests, send validation errors, etc. Can set up something on heroku's free tier

aarondfrancis avatar Oct 14 '17 15:10 aarondfrancis

@aarondfrancis I am going to include your library in a Laravel backend -> Vue SPA frontend boilerplate project I am putting on Github. I'd be happy to put a demo online also that you could link to?

shealan avatar Oct 18 '17 06:10 shealan

@shealan That would be awesome! Let me know when it's up and I'll definitely include it. Thanks!

aarondfrancis avatar Oct 18 '17 14:10 aarondfrancis

I tried to get this running today but I think your package is broken. I can't even get your basic example running on the latest version of Vue.

import VueModel from 'vue-model';
Vue.use(VueModel);

Vue.models.register('users', {
  http: {
    baseRoute: '/users',
  },
});

Gives me: Uncaught TypeError: Cannot read property 'register' of undefined

shealan avatar Oct 21 '17 02:10 shealan

Same here

Moussto avatar Oct 24 '17 07:10 Moussto

Hey @aarondfrancis just wondered if you have any comments re: getting the package running? I understand life gets in the way so not trying to push for any response/updates, just keen to get it integrated into my project :)

shealan avatar Oct 29 '17 23:10 shealan

@shealan Here's a fix for the error you posted above. https://github.com/aarondfrancis/vue-model/pull/21/files#diff-c77313286b99f6fd1fe95aea12730c16R191 I didn't create a demo. So I'm not sure if that fixes everything else.

LarryBattle avatar Oct 30 '17 02:10 LarryBattle

@LarryBattle thanks for that. Most of that is testing stuff which I am not too familiar with, but are you referring to the line you modified to be register: this.register.bind(this),. Is that the issue/fix?

shealan avatar Oct 30 '17 04:10 shealan

Yes. Try it and let me know if it works.

LarryBattle avatar Oct 31 '17 15:10 LarryBattle

A demo, working example would be great!! I sort of get most of what you put in the readme, but can't seem to figure out how to include it and make it talk to the server properly. I would really like to include this in my project because it is syntactically better that what I have seen but.....

ghost avatar Oct 29 '18 11:10 ghost