1angular.module('MoonrockApps') 2.controller('ContactFormCtrl', function($scope, MailFactory, AlertFactory) { 3 loadDefaults(); 4 5 function loadDefaults() { 6 $scope.sent = false; 7 } 8 9 $scope.conactUs = function() { 10 MailFactory.sendContactMsg({ name: $scope.firstName, email: $scope.email, message: $scope.message }).$promise 11 .then(function() { 12 $scope.sent = true; 13 }) 14 .catch(function(response) { 15 $scope.sent = false; 16 AlertFactory.failure("Unable to send your message at this time - sorry!"); 17 console.log(response); 18 }); 19 20 $scope.firstName = ''; 21 $scope.email = ''; 22 $scope.message = ''; 23 $scope.signupForm.$setPristine(); 24 }; 25 26});
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.