angular-jsdata-generator

1.0.8 • Public • Published

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.

Dependencies (17)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i angular-jsdata-generator

    Weekly Downloads

    0

    Version

    1.0.8

    License

    ISC

    Unpacked Size

    65.5 kB

    Total Files

    14

    Last publish

    Collaborators

    • jsfit