title: Using Angular Controllers with prototype
body: <p>my question is really simple.</p>
  
  <p>It is possible use Angular Controllers with prototype?</p>
  
  <pre><code>'use strict';
  var EventController = function(scope, EventModel) {
      this.scope      = scope;
      this.EventModel = EventModel;
  };
  
  EventController.prototype = {
      create: function() {
          this.scope.create = function() {
              this.EventModel.Model.insert()
                  .then(function(result) {
  
                  });
          };
      },
  
      retrieve: function() {
          var that = this;
  
          this.EventModel.Model.find()
              .then(function(result) {
                  that.scope.events = result;
  
              });
      },
  
      retrieveOne: function(id) {
          this.EventModel.Model.findOne(id)
              .then(function(result) {
                  console.log(result);
  
              });
      },
  
      update: function() {
          this.EventModel.Model.update()
              .then(function(result) {
  
              });
      },
  
      delete: function() {
          this.EventModel.Model.remove()
              .then(function(result) {
  
              });
      }
  };
  
  module.exports = function(adminApp) {
      adminApp
          .controller('EventController', ['$scope', 'EventModel', function(scope, EventModel) {
              return new EventController(scope, EventModel);
  
          }]);
  };
  </code></pre>
  
  <p>I'm using Browserify, that's why i have this module.exports in the final.</p>
  
  <p>I would love to use controllers that way and get the methods as if it were the name of the objects in the prototype.</p>
  
  <p>There is any way that i can do that?</p>