https://github.com/xfg/ng-json-query
AngularJS wrapper over json-query (https://github.com/mmckegg/json-query)
https://github.com/xfg/ng-json-query
json-query
Last synced: 2 months ago
JSON representation
AngularJS wrapper over json-query (https://github.com/mmckegg/json-query)
- Host: GitHub
- URL: https://github.com/xfg/ng-json-query
- Owner: xfg
- Created: 2017-02-16T09:34:21.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-02-16T13:59:37.000Z (over 9 years ago)
- Last Synced: 2026-02-24T17:28:34.322Z (4 months ago)
- Topics: json-query
- Language: JavaScript
- Size: 10.7 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## ng-json-query
Silly AngularJS wrapper for [json-query](https://github.com/mmckegg/json-query).
## Installation
You can install this package either with `npm` or with `bower`.
### npm
```shell
npm install ng-json-query
```
Then add a `` to your `index.html`:
```html
<script src="/node_modules/ng-json-query/ng-json-query.js">
```
Or `require('ng-json-query')` from your code.
### bower
```shell
bower install ng-json-query
```
Then add a `` to your `index.html`:
```html
<script src="/bower_components/ng-json-query/ng-json-query.js">
```
## Getting started
Adding dependency to your project
```js
angular.module('myModule', ['ngJsonQuery']);
```
After as `ngJsonQuery` dependency has been added to your application you can
inject `jsonQuery` to your controller.
```js
angular.controller(['jsonQuery', function (jsonQuery) {}]);
```
How to use `jsonQuery` see
[json-query readme](https://github.com/mmckegg/json-query).
## Tests
Start the karma test runner
```shell
npm run test:karma
```
Run tests
```shell
npm test
```
## License
MIT