Vue Layout Component

This might fix some fears.

Sometimes we end up with some logic if/elseif/else in our vue hierarchy. This might be because of complex logic or pure architectural skills. In my case, I had the “pleasure” of both.

I had a container that have to display data (from store) in create and view mode. I had every 5th line to check is it view mode? Later we had to adjust for different entity now, 2 case doubled…

--

--

JavaScript developer

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store