ngimport-ngresource
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

ngimport-ngresource Build Status npm mit

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

Package Sidebar

Install

npm i ngimport-ngresource

Weekly Downloads

4

Version

1.0.0

License

MIT

Last publish

Collaborators

  • bcherny