Back Button JavaScript

Practical Vue Components

As you continue building new projects, you'll find yourself reaching for the same crop of components over and over again. Most websites require modals, dropdowns, tooltips, and more. While you can certainly use a UI framework, let's instead learn how to construct these components (and more) from scratch.

Intermediate
Difficulty
5 episodes
1:23:09 hrs
Start Series
  • Latest Episode: Confirmation Dialogs and Buttons

  • Like this series? Share the love!

  • Episode 1 Run Time 9:21

    So the user clicks a link, and the page smoothly scrolls to your desired section. It's a common enough need. Let's wrap this functionality in a reusable Vue component, called ScrollLink.

    View the source code for this episode on GitHub.

  • Episode 2 Run Time 15:05

    Next up, we'll create a typical context menu that can be referenced anywhere on your site. You've surely seen these on countless sites, including Facebook and Twitter.

    View the source code for this episode on GitHub.

  • Episode 3 Run Time 9:50

    A common need is to display a block of HTML only when another block is hidden from the viewport. In fact, this technique is used in a number of places around the Laracasts website. You'll be happy to hear that it's quite easy to accomplish.

    View the source code for this episode on GitHub.

  • Episode 4 Run Time 20:12

    Our next practical Vue component is, of course, the ubiquitous modal. In this episode, we'll migrate and enhance the code from the CSS-only modals lesson. Once working, we'll then learn how to extract the code to a custom Vue plugin.

    View the source code for this episode on GitHub.

  • Episode 5 Run Time 28:41

    Next up on the agenda is flexible confirmation buttons and dialogs. Among other things, this will offer us a chance to review event dispatchers and promises.

    View the source code for this episode on GitHub.

*Series still in development. Check back often for updates.