Skip to content

Commit

Permalink
updated format
Browse files Browse the repository at this point in the history
  • Loading branch information
pranaydutta89 committed Aug 7, 2014
1 parent 8c0a361 commit 672acf6
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,19 +27,23 @@ Inject dependency use factory and njoy

inject to your angular module


angular.module('myApp', ['loadMoreMod']);
<code>
angular.module('myApp', ['loadMoreMod']);
</code>


use it eg

angular.module('myApp', ['loadMoreMod']).controller('myController',function($scope,queryData)
angular.module('myApp', ['loadMoreMod']).controller('myController',function($scope,queryData)
{

queryData.q({'here lies the json parameters'}).then(function()
{
//do something
});
//do something good
},then(function(){
//do something bad
}));
});

Thats it buddies !!
Expand Down

0 comments on commit 672acf6

Please sign in to comment.