First we need the javascipt, just add this script tag on the bottom of the page
So, vue is added. Next, we need to set a place for vue to load.
Initialize vue
Add a section using an id on the page
And ad a piece of javascipt to initialize vue
This will initalize vue on the page. All items within this section will be monitored bu vue.js, so we can place elements on it.
Create a simple todo component
Add a simple todo component, just before you initialize vue in the previous step.
Template
If you noticed, i used a template: '#todo-component', in my component. This is because the inline templates of vue are cumbersome and i like my templates clean and expandable. So i added them in a script tag outside my #vue-app section. Note the id="todo-component" referenced from my component.
Putting it all together.
Add a main section using an id
Add a template after this
Import cdn
Add a component js
Initialize vue
And done. Check it out on the right side, or below this on mobile. Cheers.