my very first post here and feels great.
At the moment i have a controller that get my JSON data and puts it in the scope.hotels.
app.controller('ListController1', function($scope, $http){
$http.get('js/hotels1.json').success(function(data){
$scope.hotels = data;
});
});
Nothing fancy here but as far as i know, my second controller cant reach $scope.hotels. Here is my 2nd controller
app.controller('BookCtrl', function($scope, $state){
$scope.Id = $state.params.Id;
})
How would i go about doing this?? Thanks alot!