November 2017
Beginner to intermediate
398 pages
8h 42m
English
We will write our UI components in a new file:
<!-- Scripts --> <script src="utils.js"></script> <script src="cards.js"></script> <script src="state.js"></script> <script src="components/ui.js"></script> <script src="main.js"></script>
In this file, we will register our components, so it's important that the main Vue instance is created afterward, and not before. Else, we would get errors of components not being found.
To register a component, we can use the global Vue.component() function. It takes two arguments; the name under which we register the component, and its definition ...
Read now
Unlock full access