JSFiddle - React, Tailwind, and code Playground

by chrisguzman

HTML

<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.2.6/angular.min.js"></script>
<script src="https://cdn.firebase.com/js/client/1.0.17/firebase.js"></script>
<script src="https://cdn.firebase.com/libs/angularfire/0.7.1/angularfire.min.js"></script>
<section ng-app ="myapp" ng-controller="MyController">

<div ng-repeat= "(id,item) in data">
        <input ng-model="item.comment"></input>
        <input ng-model="item.newlyPostedIdea"></input>
        <button type="submit" ng-click="data.$save(id)">Comment</button>
</div>

</section>

JavaScript

angular.module("myapp", ["firebase"])
    .controller('MyController',function MyController($scope, $firebase) {
    $scope.data = $firebase(new Firebase("https://helloworldtest.firebaseio.com"));

});