.controller('StocksCtrl',['$scope','$stateParams','$http',
function($scope, $stateParams) {
//Retrieving stock data from Yahoo Finance API
$http.get("http://finance.yahoo.com/webservice/v1/symbols/YHOO/quote?bypass=true&format=json&view=detail")
.then(function(jsonData) {
console.log(jsonData);
});
$scope.ticker = $stateParams.stockTicker;
}]);