Sha256: 4653f5973e406ae04d9f58fb06215f77cff8baba2197712d03dd9997fefe8f5a
Contents?: true
Size: 722 Bytes
Versions: 20
Compression:
Stored size: 722 Bytes
Contents
;(function() { "use strict"; // Provide interaction with a profile question. function ProfileQuestionCtrl(profileQuestionId, ProfileQuestion) { var self = this; ProfileQuestion.getOne(profileQuestionId) .then(function(profileQuestion) { self.id = profileQuestion.id; }) .catch(function(error) { window.console.log(error); }); this.responses = [{ question: 'foo?', text: 'bar' }]; } // Create a module and register the controllers. angular.module('socialNetworking.controllers') .controller('ProfileQuestionCtrl', ['profileQuestionId', 'ProfileQuestion', ProfileQuestionCtrl]); })();
Version data entries
20 entries across 16 versions & 1 rubygems