BlairAllegroTech / js-data-jsonapi

JsonApi Adapter for js-data

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

NPM Package Published

BlairAllegroTech opened this issue · comments

Any feedback appreciated

No feedback so i will assume there are no problems with this package

how do I import this?

in an angular project I tired

import { DSJsonApiAdapter } from 'js-data-jsonapi';

and I got the error:

Cannot find module 'js-data-jsonapi'.

@NullVoxPopuli I think if you are running in a browser you just need to reference the javascript file using an html script tag.

You can not import modules natively in a browser..
https://developer.mozilla.org/en/docs/web/javascript/reference/statements/import

well, I'm using typescript, and angular-cli with the latest angular-2, so I should be able to. It's not pure browser -- it's pre-browser / pre-transpiled js.