Sha256: cd3c364a184c81b8ce8e751142fbcfcef53de6c368780fec37fbd4fe17bfdfc8
Contents?: true
Size: 1.66 KB
Versions: 16
Compression:
Stored size: 1.66 KB
Contents
{I" class:ETI"BundledAsset; FI"logical_path; TI"<social_networking/controllers/participant-controller.js; FI" pathname; TI"‡/Users/usabilitymonitor/Desktop/Github/social_networking/app/assets/javascripts/social_networking/controllers/participant-controller.js; FI"content_type; TI"application/javascript; TI" mtime; Tl+˘żUI"length; Ti}I"digest; TI"%392efc4c7b4459c34d4e74c994930dc2; FI"source; TI"};(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]); })(); ; TI"required_assets_digest; TI"%370f6b6b386c925fb70a5f35d2dac926; FI" _version; TI"%069e88c06b889877799890854d7f4c40; F
Version data entries
16 entries across 8 versions & 1 rubygems