ngResource support for ngimport
# Using Yarn:
yarn add ngimport-ngresource angular angular-resource
# Or, using NPM:
npm install ngimport-ngresource angular angular-resource --save
import { $resource } from 'ngimport-ngresource'
let User = $resource('/user/:userId', { userId: '@id' })
let user = User.get({ userId: 123 }, () => {
user.abc = true
user.$save()
})
MIT
npm test