Skip to content

Instantly share code, notes, and snippets.

@oliverm2112
Last active December 25, 2015 02:29
Show Gist options
  • Save oliverm2112/6902751 to your computer and use it in GitHub Desktop.
Save oliverm2112/6902751 to your computer and use it in GitHub Desktop.
Form tests
<!DOCTYPE html>
<html>
<head>
<title></title>
</head>
<body ng-app="MyApp" ng-controller="MyCtrl">
<form name="theForm" action="newpage.html" method="post">
<input type="text" ng-model="model.test"/>
</form>
<button ng-click="submitForm()">Submit form via angular</button>
<script type="text/javascript" src="lib/angular-1.1.5.js"></script>
<script type="text/javascript" src="js/MyApp.js"></script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment