Envato API with AngularJS
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
README.md
angular-cache-2.3.4.min.js
controllers.js
services.js

README.md

AngularJS Envato API Wrapper

An AngularJS wrapper to easily access the data from the Envato's Marketplaces using their API.

[LIVE DEMO] (http://winstef.github.io/AngularJS-Envato-API-Wrapper)

Dependency

Angular-cache v2 is used to avoid unnecessary API calls.

How to use

Copy the marketplaces service and import it in your controller :

myApp.controller('mainCtrl', ['marketplaces', '$scope', function (marketplaces, $scope) {
  marketplaces.load({
    set:"activeThreads",
    param:"themeforest",
    ttl:180
  }).
  then(function (data){
    $scope.threads = data["active-threads"];
  });
}]);