This project demonstrates how to use DatX 2 in Angular.
- Add
@datx/jsonapi
,@datx/jsonapi-angular
andmobx
. - In
src/main.ts
import@datx/core/disable-mobx
. - Collections and models can now be created. Have a look at
src/app/collections
andsrc/app/models
. src/app/services/artists
demonstrates how to make a service around DatX methods for fetching and sending data.
Run npm run dev
for a dev server. This will run both the Angular application as well as a fake JSON:API server. Navigate to http://localhost:4200/
. The app will automatically reload if you change any of the source files.
The MIT License
This project is maintained and sponsored by Infinum.