This project demonstrates how to use DatX 2 in Angular.
- Add
@datx/jsonapi,@datx/jsonapi-angularandmobx. - In
src/main.tsimport@datx/core/disable-mobx. - Collections and models can now be created. Have a look at
src/app/collectionsandsrc/app/models. src/app/services/artistsdemonstrates 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.
