weatherApp.controller('forecastController', ['$scope', '$http','$resource', '$routeParams', 'cityService','$sce',function($scope, $http,$resource, $routeParams, cityService,$sce) {
$scope.city = cityService.city;
$scope.weatherAPI = $sce.trustAsResourceUrl("http://api.openweathermap.org/data/2.5/weather",{ callback: "JSON_CALLBACK" }, { get: { method: "JSONP" }} );
//$scope.weatherResult=$sce.valueOf($scope.weatherAPI);
$scope.weatherFinal= $scope.weatherAPI.get ({q: $scope.city,appid:'uniqueid'}); //uniqueid cannot be revealed.
console.log($scope.weatherFinal);
}]);