DataConnector
A DataConnector
represents the data that our angular project can manipulate. For the moment, we only generate a front-end for our JEE stack. Add a DataConnector
that has a reference to the DataElement
in question for every backend connection that you need.
DataConnectors
are added in the dataConnectors directory or directly in the FeatureModule
.
Naming
The name of your DataConnector
needs to be the same as the referenced DataElement
.
project
├── conf
├── applications
├── angular
. ├── model
├── featureModules
. ├── space
. ├── model
. ├── dataConnectors
. └── StarShip.xml
- Add in directory
- Add in FeatureModule
<dataConnector name="StarShip">
<dataElement component="spaceComp" name="StarShip"/>
</dataConnector>
<featureModule name="space">
<dataConnectors>
<dataConnector name="StarShip">
<dataElement component="spaceComp" name="StarShip"/>
</dataConnector>
</dataConnectors>
</featureModule>