0.1.0 • Published 7 years ago
ng-json-query v0.1.0
ng-json-query
Silly AngularJS wrapper for json-query.
Installation
You can install this package either with npm
or with bower
.
npm
npm install ng-json-query
Then add a <script>
to your index.html
:
<script src="/node_modules/ng-json-query/ng-json-query.js"></script>
Or require('ng-json-query')
from your code.
bower
bower install ng-json-query
Then add a <script>
to your index.html
:
<script src="/bower_components/ng-json-query/ng-json-query.js"></script>
Getting started
Adding dependency to your project
angular.module('myModule', ['ngJsonQuery']);
After as ngJsonQuery
dependency has been added to your application you can
inject jsonQuery
to your controller.
angular.controller(['jsonQuery', function (jsonQuery) {}]);
How to use jsonQuery
see
json-query readme.
Tests
Start the karma test runner
npm run test:karma
Run tests
npm test
License
MIT
0.1.0
7 years ago