angular.module('app', ['ngAnimate'])
.controller('Ctrl', function Ctrl($scope) {
  $scope.submit = function(value){
    alert(value)
  }
})
<!doctype html>
<html>
  <head>
    <script src="http://ajax.googleapis.com/ajax/libs/angularjs/1.3.15/angular.min.js"></script>
    <script src="http://ajax.googleapis.com/ajax/libs/angularjs/1.3.15/angular-animate.min.js"></script>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/angular-material/0.10.0/angular-material.js"></script>
    <script src="script.js"></script>

  </head>
  <body ng-app="app">

<div ng-controller="Ctrl">

<form name="testForm" ng-submit="submit(test)">
  <input type="text" ng-model="test">
  <input type="submit">
</form>
  
</div>



  </body>
</html>