Skip to content

jucasoft/ngrx-entity-crud

Repository files navigation

ngrx-entity-crud library

How to use it?

To use the library, read this guide.

DEVELOP

Below you will find some notes on how to modify the source code.

compile the library:

npm run build

publish library:

go to the "libs/ngrx-entity-crud" folder.

npm login (authentication)
npm publish 

or beta

npm publish --tag beta
npm install —-save ngrx-entity-crud@beta

Package linking:

cd <library-compiled>
npm link

go to the main folder of the project where to use the library:

npm link <library-name>

in case ...

if the error appears:

... 'No provider for Injector!' ...

edit the file angular.json, set the value of "projects/*/architect/build/options":
"preserveSymlinks": true.

if you don't see changes to the library under development:
temporarily remove the library reference from the "package.json" file and rerun "npm link ".

How test ng-add

ng generate ngrx-entity-crud:ng-add