Vue.js is a fully-featured javascript framework used to build web sites &
applications see an example here. Vue.js can
also be configured to
enhance the client-side of an existing (host) application (as an alternative to using jQuery &
Ajax, or as a staged conversion to a fully Vue.js application).
The host page mocked here is vanilla HTML / javascript / jQuery / Bootstrap.
Vue is added to the host page as script files:
CDN files: vue, bootstrap-vue, bootstrap-vue-icons, moment & associated CSS.
Local files: vue.js (which creates the Vue instance & locates vue on the page)
& the required Vue components, each an individual file, which render HTML controls. If you right-mouse/view source you can see all these.
Section 1 illustrates the Host application
Section 2 illustrates self-contained Vue components added to the main page.
Section 3 illustrates Vue.js using metadata to dynamically add fields to the
host page. This metadata can be added at the page level, or read in real-time from a
database.
In the latter use-case users can interact with this metadata (using a secure separate admin
application) & alter/add to these fields & their distribution at run-time.
The data has been split into Host (Column A & B) and Vue (everything else). The Submit buttons emit messages showing that both sets of data are available to both Host & Vue.