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)

January 29, 2018 ยท View on GitHub

ngResource support for ngimport

Install

# Using Yarn:
yarn add ngimport-ngresource angular angular-resource

# Or, using NPM:
npm install ngimport-ngresource angular angular-resource --save

Example

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