app.controller('MessageController', ['$http', function($http) {
  console.log('MessageController running');
  var self = this;
  self.newMessage = [];

  self.sendMessage = function(){
    console.log('newMessage: ', self.newMessage);
    
  };

}]);




// To create a new message when a student clicks "Send Message"
// 	- Send a `POST` request to `/message/new-message`
// 		- Must send token to be decoded
// 		- Must send a `message` object on data following this template:
// 			message {
// 				mentorEmail: 'mentor's email address',
// 				subject: 'subject text',
// 				body: 'body text',
// 				studentName: 'optional student name'
// 			}

@@ -143,16 +143,52 @@
 ge = %5B%5D;
+%0A  var authInfo = auth.factory.auth;
 %0A%0A  self
@@ -211,16 +211,23 @@
 unction(
+message
 )%7B%0A    c
@@ -271,20 +271,16 @@
 ssage);%0A
-    
 %0A  %7D;%0A%0A%7D

Add var