I'm trying to display this object, just that simple ... but when I reload the page, nothing happend, blank, the object is perfect because is in the console..
Angular
var store = angular.module('storeApp', []);
store.controller('CategoriesNProducts', ['$scope', function($scope) {
$scope.moltin = new Moltin({publicId: 'wA7eKb9jzqDvNI1V0HKIeGl9osh3FWcAKzOtZfcj'});
$scope.get_categories = function() {
$scope.moltin.Authenticate(function () {
$scope.moltin.Category.Tree({status: '1'}, function (tree) {
return tree;
});
});
};
$scope.categories = $scope.get_categories();
}]);
View
<div ng-app="storeApp">
<h1>Store</h1>
<section id="categories" ng-controller="CategoriesNProducts">
{{categories.length}}
<div ng-repeat="(key, value) in categories">
<div id="{{value.description}}"></div>
{{ value }}
</div>
</section>
</div>