Back to the Learning

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.

Object-Oriented JavaScript

Episode 42 Run Time 20:44

If we take another look at our NewProjectModal file, you'll notice that most of the JavaScript deals with the submission and handling of the form. It sure would be a shame to repeat this same generic code for every form in our application. With that in mind, let's extract a BirdboardForm class to help clean things up a bit.

View the source code for this episode on GitHub.

Publish Date: April 15, 2019