This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script> | |
function initialize(rooms) { | |
var location = { lat: 99.99, lng: 99.99 } | |
if (rooms.length > 0) { | |
location = { lat: rooms[0].latitude, lng: rooms[0].longitude } | |
} | |
var map = new google.maps.Map(document.getElementById('map'),{ | |
center: location, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ "restaurants": [ | |
{ | |
"name":"Au Bon Pain", | |
"icon":"http://www.jcmenus.com/wp-content/uploads/2015/09/jcm-abp-logo.png", | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// AppDetailController.swift | |
// THOAGbusiness | |
// | |
// Created by ALBAQAWI on 8/7/17. | |
// Copyright © 2017 THOAG. All rights reserved. | |
// | |
import Foundation | |
import UIKit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { Injectable } from '@angular/core'; | |
import { AngularFireModule } from 'angularfire2'; | |
import { AngularFireDatabaseModule } from 'angularfire2/database'; | |
import { AngularFireDatabase, FirebaseListObservable } from 'angularfire2/database'; | |
import 'rxjs/add/operator/do'; | |
@Injectable() | |
export class FirebaseService { | |
listings: FirebaseListObservable<any[]>; | |
// now this is called as a stand alone constructor |