Beagle Service Parameter

You will find here, what are the Beagle Service parameters.

Beagle Service

To use the Beagle library, it is necessary to create a Beagle Service setup to know where and how to search for server-driven screens.

On React you can easily create a Beagle Service through the function createBeagleService(beagleServiceOptions)

On Angular the base code is automatically generated and the properties can be modify and added on beagle.module.ts.

The configuration object has the following properties:

AttributeTypeDefaultRequiredDescription
baseUrlstringURL to the server with screens (JSON) on Beagle format.
componentsMap<string,Component>A components map that will be rendered through Beagle’s library. The values are key pairs and value where the key is identifier Beagle will always start by beagle: or custom:. The value will always be the component connected to identifier.
fetchDatafetchIt allows to add a customized function t to make HTTP requests.
analyticsProviderAnalyticsIt allows the use of handlers to the tag capture of some events.
customActionsMap<string,ActionHandler>A customized action map that can be interpreted by Beagle’s library. It is a key and value map where the key will always be an identifier starting by beagle: or custom: and the value will be the ActionHandler connected to that action.
customOperationsRecord<string, (any[]) => any>A map of additional operation to be used by Beagle expressions.
lifecyclesLifeCycleHookA global map to add lifecycles behaviors of the components. Each cycle happens on the screen renderization process, before the components become HTML.
defaultNavigationControllerNavigationControllerThe default NavigationControllerNavigationController to use as the default value for navigations.
navigationControllersRecord<string, NavigationController>Allow control over the loading, error and success events of the navigation from the backend (controllerId)
viewClientViewClientThe default ViewClientService responsible for fetching views. Useful for setting up a cache system.

Last modified January 31, 2022: feature: beagle orange (#837) (a117de55)