(function () { 'use strict'; angular.module('topdog', ['ngMaterial', 'topdog.constants']) .config(function($mdIconProvider, $mdThemingProvider) { $mdIconProvider .iconSet('communication', 'img/icons/sets/communication-icons.svg', 24); $mdThemingProvider.theme('default') .primaryPalette('red') .accentPalette('orange'); }) .controller('AppCtrl', function($scope, Profile) { Profile.me().success(function (profile) { $scope.profile = profile; Profile.getPlayerBySteamId(profile.id).success(function(player) { $scope.player = player; }); Profile.getPlayerGamesBySteamId(profile.id).success(function (matches) { $scope.matches = matches; }) }); }); })();