Last active
January 3, 2016 03:59
-
-
Save anantn/8405484 to your computer and use it in GitHub Desktop.
AngularFire Starter
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
<!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