This file contains hidden or 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
angular.module('myApp', ['ionic', 'myApp.services', 'myApp.controllers']) | |
.run(function(DB) { | |
DB.init(); | |
}); |
This file contains hidden or 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
<html> | |
<head> | |
<script src="https://cdn.firebase.com/js/client/2.0.4/firebase.js"></script> | |
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.9.0/jquery.min.js"></script> | |
<link rel="stylesheet" type="text/css" href="/resources/tutorial/css/example.css"> | |
</head> | |
<body> | |
<div class="example-base example-leaderboard l-demo-container"> | |
<table id="leaderboardTable"> |
This file contains hidden or 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
<html> | |
<head> | |
<script src="https://cdn.firebase.com/js/client/2.0.4/firebase.js"></script> | |
<script src='https://ajax.googleapis.com/ajax/libs/jquery/1.9.0/jquery.min.js'></script> | |
<link rel="stylesheet" type="text/css" href="/resources/tutorial/css/example.css"> | |
</head> | |
<body> | |
<!-- CHAT MARKUP --> | |
<div class="example-chat l-demo-container"> |
This file contains hidden or 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
function go() { | |
var userId = prompt('Username?', 'Guest'); | |
checkIfUserExists(userId); | |
} | |
var USERS_LOCATION = 'https://SampleChat.firebaseIO-demo.com/users'; | |
function userExistsCallback(userId, exists) { | |
if (exists) { | |
alert('user ' + userId + ' exists!'); |
This file contains hidden or 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
app.controller('EventSignupController', function ($scope, $routeParams, EventService, AuthService) { | |
// Load the selected event with firebase through the eventservice | |
$scope.selectedEvent = EventService.events.get($routeParams.eventId); | |
// get user settings | |
$scope.user = AuthService.user; | |
$scope.signedIn = AuthService.signedIn; | |
// Message functionality | |
$scope.posts = EventService.posts.all($scope.selectedEvent.$id); |