Skip to content
This repository has been archived by the owner on Oct 11, 2020. It is now read-only.

Latest commit

 

History

History
27 lines (23 loc) · 645 Bytes

bootstrapper.md

File metadata and controls

27 lines (23 loc) · 645 Bytes

The VueChain Bootstrapper

When building an application, it is recommended to use the vuechain bootstrapper.
It takes care of all important things and is executed while some parts of your application may still be loading.

import { bootstrap } from "vuechain";
import App from "./app.vue";

bootstrap({
	app: App
});

Start hook

The start hook is executed after the vue instance has been created.
When the start hook finishes, the vue instance is rendered.

bootstrap({
	app: App,

	async start(app: Vue) {
		// Do some startup logic like..
		//   ..Fetching a configuration.
		//   ..Setting the locale.
	}
});