Moon.js to Vue.js
After reaching a stable version of the small Link Collector application written with Moon.js, I decided to see how much effort it would be to convert it to use Vue.js instead.
Steps I needed to take so far:
- Replace
new Moon(..)withnew Vue(..) - Replace all
m-prefixed directives withv- - Adjust getters: Replace
this.get('property')withthis.property - Adjust setters: Replace
this.set('property', value)withthis.property = value - Replace
m-literal:classwithv-bind:class - Get rid of custom default event prevention (
event.preventDefault()), usev-on:submit.preventinstead
Comments
There are no comments yet.
Thanks for your contribution!
Your comment will be visible once it has been approved.
An error occured—please try again.
Add Comment