Skip to content

Smooth integration of Vue js in multi-page applications which might have used Vanilla JS or Jquery earlier

Notifications You must be signed in to change notification settings

Apfirebolt/integrating-vuejs-in-multipage-applications

Repository files navigation

integrating-vuejs-in-multipage-applications

Smooth integration of Vue js in multi-page applications which might have used Vanilla JS or Jquery earlier

Why use Vue in place of Vanilla JS ?

  • Simplifies stuff like event handling, data handling, API calls and more
  • Routing can be implemented on the front-end
  • Component based structure encourages modularity in user interface development.
  • Saves lines of code

Data, Events and Filters

To use Vue js in your multi-page application, you need to target the section where you need to use Vue in the Vue instance through class or ID (aiming through ID is preferred). Vue prevents targeting body element of the page.

The about.html page contains examples for event handling through Vue. The section tag is wrapped with a Vue object so that event and data handling can be done through Vue instead of pure Vanilla JS.

Filtering is demonstrated using currency where $ sign is appended before each currency value in the currency array.

Vue JS Resources

Books

Title Author
Python Hat True

Youtube Channels

Channel Name Owner URL
Python Hat True 23.99

Udemy Courses

Title Teacher
Python Hat True

About

Smooth integration of Vue js in multi-page applications which might have used Vanilla JS or Jquery earlier

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages