If you are loading it based on the route anyway, why not add a new route and show an entirely different *.blade.php view for each route?
Mar 10, 2018
2
Level 14
Conditional vue component in blade
What would be the "right" way to accomplish the following.
render a vuejs component in blade depending on the url?
@if(some url string)
<component-one></component-one>
@elseif(some other url string)
<component-two></component-two>
....
or with vue-router maybe? or vue dynamic components?
Just looking for the more correct way to go about this.
Thanks, Kevin
Please or to participate in this conversation.