Skip to content

Instantly share code, notes, and snippets.

@darrencauthon
Forked from calebcauthon/gist:5129738
Last active December 14, 2015 18:29

Revisions

  1. darrencauthon revised this gist Mar 10, 2013. 1 changed file with 2 additions and 0 deletions.
    2 changes: 2 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -13,6 +13,8 @@
    :plain

    function RegistrationsCtrl($scope) {
    $scope.registrations = [];

    var registration_list = new Firebase('https://lusl-dev.firebaseIO.com/summer_league_2013/registrations');
    registration_list.on('child_added', function(child) {
    var reg = child.val();
  2. darrencauthon revised this gist Mar 10, 2013. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -9,7 +9,7 @@
    .player-info


    %script{:type => "text/javascript"}
    :javascript
    :plain

    function RegistrationsCtrl($scope) {
  3. @calebcauthon calebcauthon created this gist Mar 10, 2013.
    23 changes: 23 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,23 @@
    %h2 Registrations
    .row{:"ng-controller" => "RegistrationsCtrl"}
    .span6
    %ul.players
    %li{:"ng-repeat" => "person in registrations"}
    {{person.name}}

    .span6
    .player-info


    %script{:type => "text/javascript"}
    :plain

    function RegistrationsCtrl($scope) {
    var registration_list = new Firebase('https://lusl-dev.firebaseIO.com/summer_league_2013/registrations');
    registration_list.on('child_added', function(child) {
    var reg = child.val();
    $scope.registrations.push(reg);
    });
    };