Skip to content

Instantly share code, notes, and snippets.

@anantn
Last active January 3, 2016 03:59
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anantn/8405484 to your computer and use it in GitHub Desktop.
Save anantn/8405484 to your computer and use it in GitHub Desktop.
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