While there is nothing like two-way component communicaton in Vue.js, each data flow must be defined separately.
Because I pass dynamically created string value from parent component to child, props are enough to use.
Components, as the most powerful feature of Vue.js often needs to communicate between each other. Let me show an example of all 3 types of communication: parent -> child, child -> parent, child -> child.
It’s time to write all necessary methods to manipulate app dynamically. This is the last part of Vue.js tutorial with ready-made gambling game!
It’s time to write first lines of Vue code! We prepare all necessary data, and bind them into HMTL template, with using string interpolation, class, style and attribute binding. Depending on data values, we hide/show some boxes conditionally.