https://github.com/bcherny/ngimport-ngresource
ngResource support for ngimport
https://github.com/bcherny/ngimport-ngresource
angular javascript typescript
Last synced: 2 months ago
JSON representation
ngResource support for ngimport
- Host: GitHub
- URL: https://github.com/bcherny/ngimport-ngresource
- Owner: bcherny
- Created: 2018-01-29T05:33:47.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-01-29T05:35:47.000Z (over 8 years ago)
- Last Synced: 2024-10-20T11:17:37.579Z (over 1 year ago)
- Topics: angular, javascript, typescript
- Language: TypeScript
- Size: 26.4 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ngimport-ngresource [![Build Status][build]](https://circleci.com/gh/bcherny/ngimport-ngresource) [![npm]](https://www.npmjs.com/package/ngimport-ngresource) [![mit]](https://opensource.org/licenses/MIT)
[build]: https://img.shields.io/circleci/project/bcherny/ngimport-ngresource.svg?branch=master&style=flat-square
[npm]: https://img.shields.io/npm/v/ngimport-ngresource.svg?style=flat-square
[mit]: https://img.shields.io/npm/l/ngimport-ngresource.svg?style=flat-square
> ngResource support for [ngimport](https://github.com/bcherny/ngimport)
## Install
```sh
# Using Yarn:
yarn add ngimport-ngresource angular angular-resource
# Or, using NPM:
npm install ngimport-ngresource angular angular-resource --save
```
## Example
```js
import { $resource } from 'ngimport-ngresource'
let User = $resource('/user/:userId', { userId: '@id' })
let user = User.get({ userId: 123 }, () => {
user.abc = true
user.$save()
})
```
## License
MIT
## Running the tests
`npm test`