0

Hi, I have to load a list of holtels from json and then click one hotel to load the hotel details page, i'm trying to solve with route
i've added 2 different controllers for 2 different views
each controller load a different json and this is the problem becouse it loads the first and it works, but when i load the second in the second view it doesn't work it doesn't load anything
this is the code how could i fix it??thank you for help

 var module = angular.module("sampleApp", ['ngRoute']);

    module.config(['$routeProvider',
        function($routeProvider) {
            $routeProvider.
                when('/route1', {
                    templateUrl: './ciao1.html',
                    controller: 'RouteController1'
                }).
                when('/route2', {
                    templateUrl: './ciao2.html',
                    controller: 'RouteController2'
                }).
                otherwise({
                    redirectTo: '/route1'
                });
        }]);

    module.controller("RouteController1", function($scope,$http) {
           $http.get('./json/hotelproximity.json').success(function(data) {
        $scope.artists = data;


    });
    })

      module.controller("RouteController2", function($scope,$http) {

           $http.get('./json/hotelinfo.json').success(function(data) {
            $scope.hotel =data;
        });


    })
2
Contributors
3
Replies
7
Views
3 Years
Discussion Span
Last Post by hericles
0

The console log doesn't give you any hints? Have you put a console.log in your second controller to make sure it is getting called correctly (although I can't see why it wouldn't be)?
And is your hotelinfo.json file named correctly and error free?

0

Hi, i've changed the json data and it works
so the problem is that incorrect json
but it is the one i have to work with

when i go to the first route/controller/json it works, it loads all the data and there is no error in the inspector,
if i click to load the second route
there is no data loaded and the inspector
gives me this error i don't understand

(there is no angular.min.js.map included -what's that?)

Failed to load resource: the server responded with a status of 404 (Not Found) https://mywebsite.com/weblab/wp-content/plugins/mywp_plugin/js/angular.min.js.map
2
SyntaxError: Unexpected token

at Object.parse (native)
at cc (https://mywebsite.com/weblab/wp-content/plugins/mywp_plugin/js/angular.min.js:14:306)
at Ud.e.defaults.transformResponse (https://mywebsite.com/weblab/wp-content/plugins/mywp_plugin/js/angular.min.js:69:83)
at https://mywebsite.com/weblab/wp-content/plugins/mywp_plugin/js/angular.min.js:68:354
at r (https://mywebsite.com/weblab/wp-content/plugins/mywp_plugin/js/angular.min.js:7:290)
at xc (https://mywebsite.com/weblab/wp-content/plugins/mywp_plugin/js/angular.min.js:68:336)
at b (https://mywebsite.com/weblab/wp-content/plugins/mywp_plugin/js/angular.min.js:70:70)
at K (https://mywebsite.com/weblab/wp-content/plugins/mywp_plugin/js/angular.min.js:100:79)
at https://mywebsite.com/weblab/wp-content/plugins/mywp_plugin/js/angular.min.js:101:245
at k.$eval (https://mywebsite.com/weblab/wp-content/plugins/mywp_plugin/js/angular.min.js:112:15) angular.min.js:92

(anonymous function) angular.min.js:92

and if i add this console.log there is nothing on the console

 module.controller("RouteController2", function($scope,$http) {

           $http.get('./wp-content/plugins/mywp_plugin/json/hotelinfo.json').success(function(data) {
            $scope.hotel =data;
               console.log(data) ;
        });



    })

so can you help me to fix this incorrect json??
becouse i have to work at it
thank you for help

[
    {
    "HotelInformationResponse": {
        "@hotelId": "106347",
        "customerSessionId": "0ABAA875-E534-C391-3432-DAF69EC93236",
        "HotelSummary": {
            "@order": "0",
            "hotelId": 106347,
            "name": "MCM Elegante Hotel & Suites",
            "address1": "2330 W Northwest Hwy",
            "city": "Dallas",
            "stateProvinceCode": "TX",
            "postalCode": 75220,
            "countryCode": "US",
            "propertyCategory": 1,
            "hotelRating": 3,
            "tripAdvisorRating": 4,
            "locationDescription": "Near the airport",
            "highRate": 131.9965,
            "lowRate": 112.6063,
            "latitude": 32.86082,
            "longitude": -96.8893
        },
        "HotelDetails": {
            "numberOfRooms": 199,
            "numberOfFloors": 8,
            "checkInTime": "3:00 PM",
            "checkOutTime": "12:00 PM",
            "propertyInformation": "",
            "areaInformation": "Distances are calculated in a straight line from the property's location to the point of interest or attraction, and may not reflect actual travel distance. <br /><br /> Distances are displayed to the nearest 0.1 mile and kilometre. <p>Bachman Lake Park - 2.5 km / 1.6 mi <br />University of Dallas - 3.2 km / 2 mi <br />L.B Houston Municipal Golf Course - 4.4 km / 2.7 mi <br />Frontiers of Flight Museum - 5.5 km / 3.4 mi <br />Four Seasons Resort and Club Dallas at Las Colinas - 6.5 km / 4 mi <br />Parkland Memorial Hospital - UT Southwestern - 7 km / 4.3 mi <br />Highland Park Shopping Village - 8.3 km / 5.1 mi <br />Dallas World Trade Center - 8.9 km / 5.5 mi <br />Galleria Dallas - 10 km / 6.2 mi <br />Southern Methodist University - 10.1 km / 6.3 mi <br />American Airlines Center - 10.7 km / 6.6 mi <br />Northpark Center - 10.8 km / 6.7 mi <br />Nasher Sculpture Center - 11.6 km / 7.2 mi <br />Morton H. Meyerson Symphony Center - 11.6 km / 7.2 mi <br />Dallas World Aquarium - 11.7 km / 7.3 mi <br /></p><p>The nearest airports are:<br />Dallas, TX (DAL-Love Field) - 4.1 km / 2.6 mi<br />Dallas, TX (DFW-Dallas-Fort Worth Intl.) - 14.7 km / 9.1 mi<br /></p><p>The preferred airport for MCM Elegante Hotel & Suites is Dallas, TX (DFW-Dallas-Fort Worth Intl.). </p>",
            "propertyDescription": "<p><b>Location. </b> <br />Located in Dallas, MCM Elegante Hotel & Suites is near the airport and close to Bachman Lake Park, University of Dallas, and L.B Houston Municipal Golf Course. Other area points of interest include Frontiers of Flight Museum and Four Seasons Resort and Club Dallas at Las Colinas. </p><p><b>Hotel Features. </b><br />MCM Elegante Hotel & Suites features a restaurant and a bar/lounge. Room service is available during limited hours. The hotel serves a complimentary hot and cold buffet breakfast. Recreational amenities include an outdoor pool, a spa tub, and a fitness facility. This 3-star property has a business center and offers small meeting rooms, audio-visual equipment, and business services. High-speed Internet access is available in public areas. This Dallas property has event space consisting of banquet facilities, conference/meeting rooms, and a ballroom. Complimentary shuttle services include a roundtrip airport shuttle and an area shuttle.  Guest parking is complimentary. Additional property amenities include a concierge desk, gift shops/newsstands, and laundry facilities. </p><p><b>Guestrooms. </b> <br /> 199 air-conditioned guestrooms at MCM Elegante Hotel & Suites feature coffee/tea makers and complimentary weekday newspapers. Beds come with premium bedding. Bathrooms feature shower/tub combinations, complimentary toiletries, and hair dryers. Wireless Internet access is available. In addition to desks, guestrooms offer multi-line phones with voice mail, as well as free local calls (restrictions may apply). 32-inch flat-panel televisions have satellite channels, video-game consoles, and pay movies. Also included are ceiling fans and blackout drapes/curtains. Housekeeping is available daily. </p> <br /><br /> <p><strong>Notifications and Fees:</strong><br /></p><p><ul><li>There are no room charges for children 18 years old and younger who occupy the same room as their parents or guardians, using existing bedding. </li> </ul></p><p></p><p></p> <p>The following fees and deposits are charged by the property at time of service, check-in, or check-out.  <ul><li>Pet fee: USD 50 per stay</li><li>Buffet breakfast fee: USD 7.95 per person (approximate amount)</li> </ul></p><p>The above list may not be comprehensive. Fees and deposits may not include tax and are subject to change. </p>",
            "hotelPolicy": "You must present a photo ID when checking in. Your credit card is charged at the time you book. Bed type and smoking preferences are not guaranteed.Your reservation is prepaid and is guaranteed for late arrival. The total charge includes all room charges and taxes, as well as fees for access and booking. Any incidental charges such as parking, phone calls, and room service will be handled directly between you and the property.",
            "roomInformation": "<br /><br /> <p><strong>Notifications and Fees:</strong><br /></p><p><ul><li>There are no room charges for children 18 years old and younger who occupy the same room as their parents or guardians, using existing bedding. </li> </ul></p><p></p><p></p> <p>The following fees and deposits are charged by the property at time of service, check-in, or check-out.  <ul><li>Pet fee: USD 50 per stay</li><li>Buffet breakfast fee: USD 7.95 per person (approximate amount)</li> </ul></p><p>The above list may not be comprehensive. Fees and deposits may not include tax and are subject to change. </p>",
            "drivingDirections": "The closest major airports to MCM Elegante Hotel & Suites are:<br />Dallas, TX (DAL-Love Field) - 4.1 km / 2.6 mi<br />Dallas, TX (DFW-Dallas-Fort Worth Intl.) - 14.7 km / 9.1 mi<br /><p>The preferred airport for MCM Elegante Hotel & Suites is Dallas, TX (DFW-Dallas-Fort Worth Intl.). </p><p>Distances are calculated in a straight line from the property's location to the point of interest or airport and may not reflect actual travel distance. <br /><br /> Distances are displayed to the nearest 0.1 mile and kilometre. </p>",
            "checkInInstructions": "Extra-person charges may apply and vary depending on hotel policy. 
Government-issued photo identification and a credit card or cash deposit are required at check-in for incidental charges. 
Special requests are subject to availability upon check-in and may incur additional charges. Special requests cannot be guaranteed. 
"
        },
        "Suppliers": {
            "@size": "2",
            "Supplier": [
                {
                    "@chainCode": "YX",
                    "@id": "3"
                },
                {
                    "@chainCode": "EP",
                    "@id": "13"
                }
            ]
        },
        "RoomTypes": {
            "@size": "4",
            "RoomType": [
                {
                    "@roomCode": "198058",
                    "@roomTypeId": "331554",
                    "description": "Deluxe Room King ",
                    "descriptionLong": "One king bed or two queen beds. City view. Located in an 8-story tower. Contemporary decor, desk with ergonomic chair. Complimentary high-speed Internet access. Multi-line phone with free local calls. Complimentary weekday newspapers. Cable TV with premium channels. 32-inch flat-screen TV. Coffeemaker. Bathroom with granite countertop and curved shower rod. ",
                    "roomAmenities": {
                        "@size": "30",
                        "RoomAmenity": [
                            {
                                "@amenityId": "5085674",
                                "amenity": "Air conditioning "
                            },
                            {
                                "@amenityId": "5085696",
                                "amenity": "Blackout drapes/curtains "
                            },
                            {
                                "@amenityId": "10507609",
                                "amenity": "Ceiling fan "
                            },
                            {
                                "@amenityId": "5085684",
                                "amenity": "Climate control "
                            },
                            {
                                "@amenityId": "5085682",
                                "amenity": "Clock radio "
                            },
                            {
                                "@amenityId": "5085675",
                                "amenity": "Coffee/tea maker "
                            },
                            {
                                "@amenityId": "5085679",
                                "amenity": "Complimentary toiletries "
                            },
                            {
                                "@amenityId": "5085692",
                                "amenity": "Complimentary weekday newspaper "
                            },
                            {
                                "@amenityId": "5085693",
                                "amenity": "Cribs (infant beds) available "
                            },
                            {
                                "@amenityId": "5085676",
                                "amenity": "Daily housekeeping "
                            },
                            {
                                "@amenityId": "5085683",
                                "amenity": "Desk "
                            },
                            {
                                "@amenityId": "5085689",
                                "amenity": "Electronic/magnetic keys "
                            },
                            {
                                "@amenityId": "5085729",
                                "amenity": "Extra towels/bedding in room "
                            },
                            {
                                "@amenityId": "10507615",
                                "amenity": "Flat-panel television "
                            },
                            {
                                "@amenityId": "5085690",
                                "amenity": "Free local calls "
                            },
                            {
                                "@amenityId": "5085680",
                                "amenity": "Hair dryer "
                            },
                            {
                                "@amenityId": "5085688",
                                "amenity": "High-speed Internet access "
                            },
                            {
                                "@amenityId": "5096180",
                                "amenity": "Internet access (complimentary) "
                            },
                            {
                                "@amenityId": "5085681",
                                "amenity": "Iron/ironing board "
                            },
                            {
                                "@amenityId": "5085677",
                                "amenity": "Multi-line phone  "
                            },
                            {
                                "@amenityId": "5085685",
                                "amenity": "Pay movies "
                            },
                            {
                                "@amenityId": "10186245",
                                "amenity": "Phone "
                            },
                            {
                                "@amenityId": "5102299",
                                "amenity": "Premium bedding "
                            },
                            {
                                "@amenityId": "5085687",
                                "amenity": "Rollaway beds available "
                            },
                            {
                                "@amenityId": "7776820",
                                "amenity": "Satellite television service "
                            },
                            {
                                "@amenityId": "5085730",
                                "amenity": "Shower/tub combination "
                            },
                            {
                                "@amenityId": "5085691",
                                "amenity": "Video-game console "
                            },
                            {
                                "@amenityId": "5085686",
                                "amenity": "Voice mail "
                            },
                            {
                                "@amenityId": "5085695",
                                "amenity": "Welcome amenities "
                            },
                            {
                                "@amenityId": "5102300",
                                "amenity": "Wireless Internet access "
                            }
                        ]
                    }
                },
                {
                    "@roomCode": "203084",
                    "@roomTypeId": "334134",
                    "description": "Cabana Poolside King Suite",
                    "descriptionLong": "One king bed or two queen beds with 12-inch pillowtop mattresses, 300-thread-count sheets, and oversized down comforters (bedspreads) and pillows in bedroom. Balcony with parking lot view. Located poolside. Exterior access. 350 square feet. Separate living area with 32-inch flat-screen TV. Complimentary wired or wireless high-speed Internet access. Refrigerator, microwave, coffeemaker with Starbucks coffee, wet bar. Bath & Body Works products. Iron and ironing board. Nonsmoking.        
 ",
                    "roomAmenities": {
                        "@size": "30",
                        "RoomAmenity": [
                            {
                                "@amenityId": "5136792",
                                "amenity": "Air conditioning "
                            },
                            {
                                "@amenityId": "5137221",
                                "amenity": "Blackout drapes/curtains "
                            },
                            {
                                "@amenityId": "10507610",
                                "amenity": "Ceiling fan "
                            },
                            {
                                "@amenityId": "5136802",
                                "amenity": "Climate control "
                            },
                            {
                                "@amenityId": "5136800",
                                "amenity": "Clock radio "
                            },
                            {
                                "@amenityId": "5136794",
                                "amenity": "Coffee/tea maker "
                            },
                            {
                                "@amenityId": "5136797",
                                "amenity": "Complimentary toiletries "
                            },
                            {
                                "@amenityId": "5137217",
                                "amenity": "Complimentary weekday newspaper "
                            },
                            {
                                "@amenityId": "5137218",
                                "amenity": "Cribs (infant beds) available "
                            },
                            {
                                "@amenityId": "5136795",
                                "amenity": "Daily housekeeping "
                            },
                            {
                                "@amenityId": "5136801",
                                "amenity": "Desk "
                            },
                            {
                                "@amenityId": "5136807",
                                "amenity": "Electronic/magnetic keys "
                            },
                            {
                                "@amenityId": "5137222",
                                "amenity": "Extra towels/bedding in room "
                            },
                            {
                                "@amenityId": "10507616",
                                "amenity": "Flat-panel television "
                            },
                            {
                                "@amenityId": "5137215",
                                "amenity": "Free local calls "
                            },
                            {
                                "@amenityId": "5136798",
                                "amenity": "Hair dryer "
                            },
                            {
                                "@amenityId": "5136806",
                                "amenity": "High-speed Internet access "
                            },
                            {
                                "@amenityId": "5137613",
                                "amenity": "Internet access (complimentary) "
                            },
                            {
                                "@amenityId": "5136799",
                                "amenity": "Iron/ironing board "
                            },
                            {
                                "@amenityId": "5136796",
                                "amenity": "Multi-line phone  "
                            },
                            {
                                "@amenityId": "5136803",
                                "amenity": "Pay movies "
                            },
                            {
                                "@amenityId": "10186246",
                                "amenity": "Phone "
                            },
                            {
                                "@amenityId": "5137617",
                                "amenity": "Premium bedding "
                            },
                            {
                                "@amenityId": "5136805",
                                "amenity": "Rollaway beds available "
                            },
                            {
                                "@amenityId": "7776821",
                                "amenity": "Satellite television service "
                            },
                            {
                                "@amenityId": "5137223",
                                "amenity": "Shower/tub combination "
                            },
                            {
                                "@amenityId": "5137216",
                                "amenity": "Video-game console "
                            },
                            {
                                "@amenityId": "5136804",
                                "amenity": "Voice mail "
                            },
                            {
                                "@amenityId": "5137220",
                                "amenity": "Welcome amenities "
                            },
                            {
                                "@amenityId": "5137618",
                                "amenity": "Wireless Internet access "
                            }
                        ]
                    }
                },
                {
                    "@roomCode": "200127410",
                    "@roomTypeId": "731549",
                    "description": "Cabana Poolside Two Queen Suite",
                    "descriptionLong": "2 queen beds. Premium bedding. Desk. 32-inch television. Flat-panel television. Satellite television service. Pay movies. Video-game console. Multi-line phone. Free local calls. Voice mail. Clock radio. Coffee/tea maker. Shower/tub combination. Hair dryer. Complimentary toiletries. Iron/ironing board. Complimentary weekday newspaper. Blackout drapes/curtains. Extra towels/bedding in room. Welcome amenities. Rollaway beds available. Cribs (infant beds) available. Air conditioning. Ceiling fan. Climate control. Daily housekeeping."
                },
                {
                    "@roomCode": "200127420",
                    "@roomTypeId": "731550",
                    "description": "Deluxe Two Queen Beds",
                    "descriptionLong": "2 queen beds. Premium bedding. Desk. 32-inch television. Flat-panel television. Satellite television service. Pay movies. Video-game console. Multi-line phone. Free local calls. Voice mail. Clock radio. Coffee/tea maker. Shower/tub combination. Hair dryer. Complimentary toiletries. Iron/ironing board. Complimentary weekday newspaper. Blackout drapes/curtains. Extra towels/bedding in room. Welcome amenities. Rollaway beds available. Cribs (infant beds) available. Air conditioning. Ceiling fan. Climate control. Daily housekeeping."
                }
            ]
        },
        "PropertyAmenities": {
            "@size": "47",
            "PropertyAmenity": [
                {
                    "amenityId": 2602199,
                    "amenity": "24-hour front desk "
                },
                {
                    "amenityId": 1428764,
                    "amenity": "ATM/banking                    "
                },
                {
                    "amenityId": 3827703,
                    "amenity": "Accessibility equipment for the deaf "
                },
                {
                    "amenityId": 3827699,
                    "amenity": "Accessible bathroom "
                },
                {
                    "amenityId": 3827698,
                    "amenity": "Accessible path of travel "
                },
                {
                    "amenityId": 1037677,
                    "amenity": "Air-conditioned public areas                    "
                },
                {
                    "amenityId": 1125450,
                    "amenity": "Airport transportation (complimentary)                    "
                },
                {
                    "amenityId": 4534359,
                    "amenity": "Area shuttle (complimentary) "
                },
                {
                    "amenityId": 2602195,
                    "amenity": "Audio-visual equipment "
                },
                {
                    "amenityId": 1037682,
                    "amenity": "Ballroom(s)                    "
                },
                {
                    "amenityId": 671428,
                    "amenity": "Banquet Facilities                    "
                },
                {
                    "amenityId": 1037676,
                    "amenity": "Bar/lounge                    "
                },
                {
                    "amenityId": 3827704,
                    "amenity": "Braille or raised signage "
                },
                {
                    "amenityId": 5376496,
                    "amenity": "Breakfast available (surcharge) "
                },
                {
                    "amenityId": 1341677,
                    "amenity": "Business center                    "
                },
                {
                    "amenityId": 849241,
                    "amenity": "Business services                    "
                },
                {
                    "amenityId": 2602198,
                    "amenity": "Complimentary newspapers in lobby  "
                },
                {
                    "amenityId": 2602203,
                    "amenity": "Concierge desk "
                },
                {
                    "amenityId": 1037674,
                    "amenity": "Conference room(s)                    "
                },
                {
                    "amenityId": 3895151,
                    "amenity": "Dry cleaning/laundry service "
                },
                {
                    "amenityId": 849307,
                    "amenity": "Elevator/lift                    "
                },
                {
                    "amenityId": 2602204,
                    "amenity": "Elevator/lift attendant "
                },
                {
                    "amenityId": 848972,
                    "amenity": "Event catering                    "
                },
                {
                    "amenityId": 2602209,
                    "amenity": "Express check- in "
                },
                {
                    "amenityId": 2602200,
                    "amenity": "Express check-out "
                },
                {
                    "amenityId": 4557860,
                    "amenity": "Fitness facilities "
                },
                {
                    "amenityId": 2602192,
                    "amenity": "Gift shops or newsstand "
                },
                {
                    "amenityId": 3827701,
                    "amenity": "Handicapped parking "
                },
                {
                    "amenityId": 3827702,
                    "amenity": "In-room accessibility "
                },
                {
                    "amenityId": 2602202,
                    "amenity": "Internet access - wireless   "
                },
                {
                    "amenityId": 2602206,
                    "amenity": "Internet access in public areas - complimentary  "
                },
                {
                    "amenityId": 2602205,
                    "amenity": "Internet access in public areas - high speed "
                },
                {
                    "amenityId": 1037678,
                    "amenity": "Laundry facilities                    "
                },
                {
                    "amenityId": 2602207,
                    "amenity": "Meeting rooms (small groups) "
                },
                {
                    "amenityId": 2602194,
                    "amenity": "Number of floors: 8"
                },
                {
                    "amenityId": 2602193,
                    "amenity": "Number of rooms: 199"
                },
                {
                    "amenityId": 2602196,
                    "amenity": "Parking (free) "
                },
                {
                    "amenityId": 6365835,
                    "amenity": "Pets accepted "
                },
                {
                    "amenityId": 2602191,
                    "amenity": "Restaurant(s) in hotel "
                },
                {
                    "amenityId": 3827700,
                    "amenity": "Roll-in shower "
                },
                {
                    "amenityId": 1037670,
                    "amenity": "Room service (limited hours)                    "
                },
                {
                    "amenityId": 2602197,
                    "amenity": "Safe-deposit box - front desk "
                },
                {
                    "amenityId": 2602201,
                    "amenity": "Security guard "
                },
                {
                    "amenityId": 1037679,
                    "amenity": "Self parking                    "
                },
                {
                    "amenityId": 1037675,
                    "amenity": "Spa Tub                    "
                },
                {
                    "amenityId": 1037689,
                    "amenity": "Swimming pool - outdoor                    "
                },
                {
                    "amenityId": 2602208,
                    "amenity": "Wedding services "
                }
            ]
        },
        "HotelImages": {
            "@size": "16",
            "HotelImage": [
                {
                    "hotelImageId": 4694179,
                    "name": "",
                    "category": 1,
                    "type": 0,
                    "caption": "Exterior",
                    "url": "http://images.travelnow.com/hotels/1000000/10000/5900/5900/5900_44_b.jpg",
                    "thumbnailUrl": "http://images.travelnow.com/hotels/1000000/10000/5900/5900/5900_44_t.jpg",
                    "supplierId": 13,
                    "width": 350,
                    "height": 350,
                    "byteSize": 0
                },
                {
                    "hotelImageId": 4694182,
                    "name": "",
                    "category": 2,
                    "type": 0,
                    "caption": "Lobby",
                    "url": "http://images.travelnow.com/hotels/1000000/10000/5900/5900/5900_47_b.jpg",
                    "thumbnailUrl": "http://images.travelnow.com/hotels/1000000/10000/5900/5900/5900_47_t.jpg",
                    "supplierId": 13,
                    "width": 350,
                    "height": 350,
                    "byteSize": 0
                },
                {
                    "hotelImageId": 4694171,
                    "name": "",
                    "category": 2,
                    "type": 0,
                    "caption": "Lobby",
                    "url": "http://images.travelnow.com/hotels/1000000/10000/5900/5900/5900_36_b.jpg",
                    "thumbnailUrl": "http://images.travelnow.com/hotels/1000000/10000/5900/5900/5900_36_t.jpg",
                    "supplierId": 13,
                    "width": 350,
                    "height": 350,
                    "byteSize": 0
                },
                {
                    "hotelImageId": 4694174,
                    "name": "",
                    "category": 2,
                    "type": 0,
                    "caption": "Lobby",
                    "url": "http://images.travelnow.com/hotels/1000000/10000/5900/5900/5900_39_b.jpg",
                    "thumbnailUrl": "http://images.travelnow.com/hotels/1000000/10000/5900/5900/5900_39_t.jpg",
                    "supplierId": 13,
                    "width": 350,
                    "height": 350,
                    "byteSize": 0
                },
                {
                    "hotelImageId": 4694168,
                    "name": "",
                    "category": 3,
                    "type": 0,
                    "caption": "Guest Room",
                    "url": "http://images.travelnow.com/hotels/1000000/10000/5900/5900/5900_33_b.jpg",
                    "thumbnailUrl": "http://images.travelnow.com/hotels/1000000/10000/5900/5900/5900_33_t.jpg",
                    "supplierId": 13,
                    "width": 350,
                    "height": 350,
                    "byteSize": 0
                },
                {
                    "hotelImageId": 4694173,
                    "name": "",
                    "category": 3,
                    "type": 0,
                    "caption": "Guest Room",
                    "url": "http://images.travelnow.com/hotels/1000000/10000/5900/5900/5900_38_b.jpg",
                    "thumbnailUrl": "http://images.travelnow.com/hotels/1000000/10000/5900/5900/5900_38_t.jpg",
                    "supplierId": 13,
                    "width": 350,
                    "height": 350,
                    "byteSize": 0
                },
                {
                    "hotelImageId": 4694177,
                    "name": "",
                    "category": 3,
                    "type": 0,
                    "caption": "Guest Room",
                    "url": "http://images.travelnow.com/hotels/1000000/10000/5900/5900/5900_42_b.jpg",
                    "thumbnailUrl": "http://images.travelnow.com/hotels/1000000/10000/5900/5900/5900_42_t.jpg",
                    "supplierId": 13,
                    "width": 350,
                    "height": 350,
                    "byteSize": 0
                },
                {
                    "hotelImageId": 4694165,
                    "name": "",
                    "category": 10,
                    "type": 0,
                    "caption": "Restaurant",
                    "url": "http://images.travelnow.com/hotels/1000000/10000/5900/5900/5900_30_b.jpg",
                    "thumbnailUrl": "http://images.travelnow.com/hotels/1000000/10000/5900/5900/5900_30_t.jpg",
                    "supplierId": 13,
                    "width": 350,
                    "height": 350,
                    "byteSize": 0
                },
                {
                    "hotelImageId": 4694166,
                    "name": "",
                    "category": 10,
                    "type": 0,
                    "caption": "Restaurant",
                    "url": "http://images.travelnow.com/hotels/1000000/10000/5900/5900/5900_31_b.jpg",
                    "thumbnailUrl": "http://images.travelnow.com/hotels/1000000/10000/5900/5900/5900_31_t.jpg",
                    "supplierId": 13,
                    "width": 350,
                    "height": 350,
                    "byteSize": 0
                },
                {
                    "hotelImageId": 6601500,
                    "name": "",
                    "category": 11,
                    "type": 0,
                    "caption": "Interior",
                    "url": "http://images.travelnow.com/hotels/1000000/10000/5900/5900/5900_56_b.jpg",
                    "thumbnailUrl": "http://images.travelnow.com/hotels/1000000/10000/5900/5900/5900_56_t.jpg",
                    "supplierId": 13,
                    "width": 350,
                    "height": 350,
                    "byteSize": 0
                },
                {
                    "hotelImageId": 4694176,
                    "name": "",
                    "category": 12,
                    "type": 0,
                    "caption": "Pool",
                    "url": "http://images.travelnow.com/hotels/1000000/10000/5900/5900/5900_41_b.jpg",
                    "thumbnailUrl": "http://images.travelnow.com/hotels/1000000/10000/5900/5900/5900_41_t.jpg",
                    "supplierId": 13,
                    "width": 350,
                    "height": 350,
                    "byteSize": 0
                },
                {
                    "hotelImageId": 4694170,
                    "name": "",
                    "category": 12,
                    "type": 0,
                    "caption": "Pool",
                    "url": "http://images.travelnow.com/hotels/1000000/10000/5900/5900/5900_35_b.jpg",
                    "thumbnailUrl": "http://images.travelnow.com/hotels/1000000/10000/5900/5900/5900_35_t.jpg",
                    "supplierId": 13,
                    "width": 350,
                    "height": 350,
                    "byteSize": 0
                },
                {
                    "hotelImageId": 4694172,
                    "name": "",
                    "category": 12,
                    "type": 0,
                    "caption": "Pool",
                    "url": "http://images.travelnow.com/hotels/1000000/10000/5900/5900/5900_37_b.jpg",
                    "thumbnailUrl": "http://images.travelnow.com/hotels/1000000/10000/5900/5900/5900_37_t.jpg",
                    "supplierId": 13,
                    "width": 350,
                    "height": 350,
                    "byteSize": 0
                },
                {
                    "hotelImageId": 4694180,
                    "name": "",
                    "category": 21,
                    "type": 0,
                    "caption": "Lounge/Bar",
                    "url": "http://images.travelnow.com/hotels/1000000/10000/5900/5900/5900_45_b.jpg",
                    "thumbnailUrl": "http://images.travelnow.com/hotels/1000000/10000/5900/5900/5900_45_t.jpg",
                    "supplierId": 13,
                    "width": 350,
                    "height": 350,
                    "byteSize": 0
                },
                {
                    "hotelImageId": 4694181,
                    "name": "",
                    "category": 21,
                    "type": 0,
                    "caption": "Lounge/Bar",
                    "url": "http://images.travelnow.com/hotels/1000000/10000/5900/5900/5900_46_b.jpg",
                    "thumbnailUrl": "http://images.travelnow.com/hotels/1000000/10000/5900/5900/5900_46_t.jpg",
                    "supplierId": 13,
                    "width": 350,
                    "height": 350,
                    "byteSize": 0
                },
                {
                    "hotelImageId": 4694175,
                    "name": "",
                    "category": 38,
                    "type": 0,
                    "caption": "Suite",
                    "url": "http://images.travelnow.com/hotels/1000000/10000/5900/5900/5900_40_b.jpg",
                    "thumbnailUrl": "http://images.travelnow.com/hotels/1000000/10000/5900/5900/5900_40_t.jpg",
                    "supplierId": 13,
                    "width": 350,
                    "height": 350,
                    "byteSize": 0
                }
            ]
        }
    }
}
]
1

Your console.log line isn't getting hit because the code is failing at the http.get line. When AngularJS itself hits an error the location of the error shown in the console often isn't of much use.
I used a JSON validator found here and loaded up your JSON. Two errors were found. If you do the same you can easier track them down and see whats wrong.

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.