Connecting to woocommerce api to get category list with ionic

0
down vote
favorite
I am trying to use Woocommerce API to receive some data from a website by using https://github.com/samarthagarwal/WC-API-JS-Client this API. By using the following code, i recieve this error : “This site requires Javascript to work, please enable Javascript in your browser or use a browser with Javascript support”. How ever i am using chrome with “allow-control-allow-origin:*” extension and javascript enabled (setting-privacy-custon setting- enable javascript) in my chrome.

.controller('AppCtrl',function($scope,WC){
  var Woocommerce= WC.WC();
  Woocommerce.get('products/categories',function(err,data, res){
    console.log(res);    
  })
})

Any advice or suggestion is really appreciated

Hi.Good time
Any idea duds?