SyneticNL / Hyral

Hypermedia oriented Resource API Layer
MIT License
34 stars 2 forks source link

Add documentation on how to catch errors with vue mixins #109

Closed barthje closed 5 years ago

barthje commented 5 years ago

example

methods: {
    loadResource() {
      HyralResourceMixin.methods.loadResource.call(this).catch(() => {
        console.log('error');
      });
    },
  },
barthje commented 5 years ago

See https://github.com/SyneticNL/Hyral/pull/110

barthje commented 5 years ago

merged to master