{:uriI"file:///Users/ericcf/work/social_networking/app/assets/javascripts/social_networking/controllers/participant-controller.js?type=application/javascript&pipeline=self&id=93842a2ebdbe02aea8d1891a59dffc3e5bd19cd00ec7516f6800919ee86722a8:ET:load_pathI"@/Users/ericcf/work/social_networking/app/assets/javascripts;T: filenameI"x/Users/ericcf/work/social_networking/app/assets/javascripts/social_networking/controllers/participant-controller.js;T: nameI"9social_networking/controllers/participant-controller;T:logical_pathI"Asocial_networking/controllers/participant-controller.self.js;T:content_typeI"application/javascript;T: sourceI"};(function() { "use strict"; // Provide interaction with a participant's profile. function ParticipantCtrl(participantId, Participants, Nudges) { var self = this; this._nudges = Nudges; Participants.getOne(participantId) .then(function(participant) { self.id = participant.id; self.username = participant.username; self.latestAction = participant.latestAction; }) .catch(function(error) { window.console.log(error); }); this.responses = [{ question: 'foo?', text: 'bar' }]; } // Send a nudge from one participant to another. ParticipantCtrl.prototype.nudge = function() { this._nudges.create({ recipient: this }); }; // Initiate profile editor interface. ParticipantCtrl.prototype.edit = function() { window.console.log("edit"); }; // Create a module and register the controllers. angular.module('socialNetworking.controllers') .controller('ParticipantCtrl', ['participantId', 'Participants', 'Nudges', ParticipantCtrl]); })(); ;T: metadata{ :dependencieso:Set: @hash} I"environment-version;TTI"environment-paths;TTI"Zprocessors:type=application/javascript&file_type=application/javascript&pipeline=self;TTI"file-digest:///Users/ericcf/work/social_networking/app/assets/javascripts/social_networking/controllers/participant-controller.js;TTF: requiredo;;}F: stubbedo;;}F: linkso;;}F: charsetI" utf-8;F: digest"%a:65w~mm0\]&: lengthi}:dependencies_digest"%'31P]#bVX;G:idI"E93842a2ebdbe02aea8d1891a59dffc3e5bd19cd00ec7516f6800919ee86722a8;F: mtimel+a3W