AngularJS in Backoffice Framework
Backoffice Framework Framework provides the possibility to integrate the AngularJS library. This page holds the documentation concerning integration of AngularJS with Backoffice Framework.
Introduction
You can build your own AngularJS based widgets and communicate with other widgets from the standard widgets library. In the documentation gathered below, you can find the information about AngularJS implementation in Backoffice Framework, as well as step-by-step guides how to leverage it.
Available Documentation
|
Document Link |
Description |
|---|---|
|
Developer's Guide Documentation |
|
|
Tutorial presents the steps for creating a widget in AngularJS framework. |
|
|
Tutorial presents the steps how to extend AngularJS-based widget capabilities. |
|
|
Tutorial provides the steps for using HTML templates when using third party javascript libraries. |
|
|
Implementation Documentation |
|
|
The document describes how the integration of AngularJS framework may be implemented to Backoffice Framework. |
|
|
This document describes how integration of pure Javascript may be implemented to Backoffice Framework. |
|
|
This document describes the possibilities and configurations of HTML widget templates. |
|
Recommendation
When following the tutorial documents, you may use the widget prototyping that prevents you from calling ant all and restarting the server in most of the cases (only the changes to Java/Spring related files and *.properties files still require restarting the server):
Prototyping a Widget
You can change behavior of the framework, to make it easier to prototype a widget:
- To make changes in ZUL files visible after page refresh, including changes to custom CSS files:
-
Change the following properties, then restart the server:
local.properties
backoffice.cockpitng.additionalResourceLoader.enabled=true backoffice.cockpitng.uifactory.cache.enabled=false backoffice.cockpitng.widgetclassloader.resourcecache.enabled=false backoffice.cockpitng.resourceloader.resourcecache.enabled=false
(Updates to labels.properties files are not affected and require the extension to be rebuilt.)
-
Additionally to create and modify a widget in a built and started environment, in the definition file of your widget, in the controller tag refer to groovy script that is to be the controller of your widget during widget prototyping.
-