Skip to content

Instantly share code, notes, and snippets.

View oliverm2112's full-sized avatar

Oliver Merk oliverm2112

View GitHub Profile
@oliverm2112
oliverm2112 / MyApp.js
Last active December 25, 2015 02:29
form test JS
app = angular.module('MyApp', []);
app.controller('MyCtrl', ['$scope', function ($scope) {
$scope.model = {
test : 'hello'
};
$scope.submitForm = function () {
alert('Dirty: ' + $scope.theForm.$dirty);