Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Google Analytics Experiments in AngularJS - listcontroller.js
'use strict';
angular.module('myStoreApp')
.controller('ListController', ['$scope', '$http', function($scope, $http){
$http.get('api.mystore.com/products/')
.success(function(products){
$socpe.products = products;
});
}]);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.