Back to the Learning!

Laracasts is packed full with over 1,000 lessons just like this one.

Sign up to get full access or log in to your account and sit back.

Published On Jun. 5th 2018

Learn Vue 2: Step By Step: Fixed to the Top: Part 2

Episode 43 Run Time 5:31

Download

Now that we have the basic functionality from the previous episode working, let's refactor the code into something far more reusable.

Note: JavaScript is necessary to allow for this functionality across all browsers. However, if you have the means, you might instead use CSS to accomplish the same effect much more easily.