Mocking Vue Router
Since our preview components are rendered in isolation there's no need for Vue Router. However, there are two features of Vue Router that are hardcoded into some of our components: the router object, and the router link component.
An example of this is the Item Form component. You'll recall from the last module that this component renders a form that can be used either to create a new item, or edit an existing item.
Click to load comments...