$sdk You can access it from with your Vue components at
this.$sdk And inside your services by using just
Documentation for the SDK can be found here.
Using the App Service
this.$sdk.app when in a VueJS component Or in html directly like this
provides the details about the current route, it's properties, any dynamic content it's loaded from it's URL parameters and it's current state (if it's fully loaded)
provides a hashed object of all the menus of the interface and their items
provides the details about the logged in user (if a user has logged in)
Provides context of the builder, if previewing the interface within the interface builder. Will return undefined in a published application
provides the details about the current device used to view the interface, including the screen dimensions, breakpoints and viewport dimensions.
provides the details about the current application. It's access token, domain name and other information. Keep in mind that an interface can be used in multiple applications, so when viewing the preview in the builder this property will reflect the application selected in the emulation settings.
Provides a function to programmatically navigate the user to a specific route, by providing the route id, parameters and query string variables.