How do I expose a data operation in the Angular UI?
Once your DataOperations are defined for the back-end, we can expose these to Angular to expand Forms and Actions. For the model elements involved, see DataConnector and DataView.
DataConnector
To expose a DataOperation, an already exposed DataOperation can be added as a DataOperationConnector as a child of
DataConnector. Alternatively you can use the ConnectDataOperationsToAngular transmuter to automatically connect all
exposed dataOperations.
- µRadiant
- $ CLI
- Navigate to your FeatureModule.
- In the tree-view, open the context menu of the dataConnector (right-click).
- Select "Connect Data Operations To Angular". This will add the connector mentioned above.
Run the following command to transmute the model.
mvn expanders:transmute-model -Dtransmutation=ConnectDataOperationsToAngular