DataView
A DataView
acts as a representation of the data that our angular project can manipulate. Add a DataView
for every DataConnector
that needs a CRUD interface.
DataViews
are added in the dataViews directory or directly in the FeatureModule
.
Naming
The name of your DataView
needs to be the same as the referenced DataConnector
.
project
├── conf
├── applications
├── angular
. ├── model
├── featureModules
. ├── space
. ├── model
. ├── dataConnectors
├── dataViews
. └── StarShip.xml
- Add in directory
- Add in FeatureModule
<dataView name="StarShip">
<dataConnector featureModule="space" name="StarShip"/>
</dataView>
<featureModule name="space">
<dataViews>
<dataView name="StarShip">
<dataConnector featureModule="space" name="StarShip"/>
</dataView>
</dataViews>
</featureModule>