Documentation v8.1.9

Javascript

Metronic Laravel  Javascript code is written in pure(vanila) Javascript(no jquery dependency) in order to make it easier to integrate with SPA frameworks such as Angular, React and Vue. During the build process the Javascript code from the source folder is minified and moved to the assets folder.

Components

The components folder in /resources/assets/[demo]/js/components/ contains custom Metronic Laravel  Components written in vanilla Javascript. All components can be used by Angular, React and Vue versions.

Layout

The layout folder in /resources/assets/[demo]/js/layout/ contains Javascript files that handle the Layout partials(Aside, Header, Footer, Subheader, etc).

Compilation

  • Metronic Laravel  compiles layout, components(including the Bootstrap & custom components) Javascript code into the main bundle: /public/[demo]/js/scripts.bundle.js.
  • The custom Javascript code is compiled separately into CSS folder: /public/[demo]/js/custom
  • All 3rd-party plugins Javascript code are bundled into the plugins Javascript bundle file and globally included in all pages. /public/[demo]/plugins/global/plugins.bundle.js`.