You may notice the “init” method in the HTML boilerplate. This method is important to activate the Optix component. It will read the context variables and also show the page only when the canvas is fully loaded (make sure to use the class “optix-show-on-load” at the main object)
mounted(){
this.$optix.init().then(()=>{
this.message =
’Hello World! Loaded at ’+new Date()
});
}
The options parameter is optional and can receive an object that overrides the current environment variables:
client_id
The app client ID (useful if your app open or link other canvases of your app). Default: null.
access_token_argument
The token argument name. Default: “token”