{:uriI"file:///Users/usabilitymonitor/Desktop/Github/social_networking/app/assets/javascripts/social_networking/controllers/participant-controller.js?type=application/javascript&pipeline=self&id=60814160dc8cffefe409363d00c3bf5ea6b90d1fca5ce6196f815f4bcd2de6cc:ET:load_pathI"T/Users/usabilitymonitor/Desktop/Github/social_networking/app/assets/javascripts;T: filenameI"/Users/usabilitymonitor/Desktop/Github/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/usabilitymonitor/Desktop/Github/social_networking/app/assets/javascripts/social_networking/controllers/participant-controller.js;TT: requiredo;;{: stubbedo;;{: linkso;;{: charsetI" utf-8;F: digest"%a:65w~mm0\]&: lengthi}:dependencies_digest"%b^"w湲:Ԍu~¬–#:idI"E60814160dc8cffefe409363d00c3bf5ea6b90d1fca5ce6196f815f4bcd2de6cc;F: mtimel+U