crud-angular-resource
v1.0.0
Published
Typescript Angular Resource extension for interacting with RESTful APIs (including a PUT Action decriptor)
Downloads
4
Maintainers
Readme
Typescript Angular Resource (PUT Decriptor)
If you want to use angular-resource interacting with your rest api and you want to use the "PUT" HTTP verb for your CRUD operations, you can use the "crud-angular-resource" npm package.
Supposing you have an IDE with Typescript and you have a running angular app:
1- Install npm package: npm install crud-angular-resource --save-dev
2- Add crud-angular-resource.js or crud-angular-resource.min.js to your index.html
3- Add 'mra.crudResource' as a dependency for your app.
4- Inject the 'crudService' in your controller.
5- Install tsd: npm install -g tsd to manage your typings.
6- Install angular-resource typing: tsd install angular-resource.
Demo usage
https://github.com/manuelreina/angular-resource-typescript