angular-jsdata-generator
v1.0.8
Published
Angular data generator using js-data
Downloads
5
Readme
angular-jsdata-generator
Installation
Run npm i -g angular-jsdata-generator
Code scaffolding
Run ngdata model
press enter to generate a new model in angular project.
i) it will prompt for model name
ii) prompt for property/attribute and property type e.g string, number etc.
iii) after entering all the properties, to finish the model just enter without typing any property name
iv) done, enjoy !
Remove model
Run ngdata d model "model name"
remove a model
e.g ngdata d model user
Usage
in which component you want to use just import STORE
import { STORE } from 'models/store';
Do all operations using STORE
Like
STORE
.findAll("user")
.then(function(users) {
STORE.add("user", users);
});
Full documentation status
Pending not documented yet.
Further help
To get more help on the js-data out the js-data docs.