Skip to content

Instantly share code, notes, and snippets.

@anantn anantn/gist:8405484
Last active Jan 3, 2016

Embed
What would you like to do?
AngularFire Starter
<!doctype html>
<html lang="en" ng-app="chat">
<head>
<meta charset="UTF-8">
<title>AngularFire Chat Demo</title>
<link rel="stylesheet" type="text/css" href="https://www.firebase.com/css/example.css">
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.2.7/angular.min.js"></script>
</head>
<body ng-controller="Chat">
<div>
<label for="">Your name: </label><input id="name" type="text">
</div>
<p></p>
<div id="messagesDiv" style="height:500px;">
<!-- Display chat messages here -->
</div>
<form>
<input id="message" type="text" placeholder="Message...">
<input id="send" type="submit" value="Send" style="font-size:24px;">
</form>
<script>
angular.module('chat', [])
.controller('Chat', ['$scope', function($scope) {
}]);
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.