I have some components. After a jquery AJAX request i would show a specific component. Is there a function for that?
<comp1 :page="page1"></comp1>
<comp2 :page="page2"></comp1>
<comp3 :page="page3"></comp1>
The AJAX is in a another file.
I have some components. After a jquery AJAX request i would show a specific component. Is there a function for that?
The AJAX is in a another file. |
|||||
|
You can use using v-show:
using v-if:
You can set these
|
|||||||||
|
You can use
Then just bind them with
here's a JSFiddle to show you how it works: https://jsfiddle.net/wp5tfe2e/ |
||||
|