Skip to content

Instantly share code, notes, and snippets.

View lrkwz's full-sized avatar

Luca Orlandi lrkwz

View GitHub Profile
@lrkwz
lrkwz / app.js
Last active May 25, 2017 13:29 — forked from rnkoaa/app.js
A simple angularjs with angular-ui modal form which includes validation on the client side.Thanks http://scotch.io/tutorials/javascript/angularjs-form-validation
var app = angular.module("modalFormApp", ['ui.bootstrap']);
app.controller("modalAccountFormController", ['$scope', '$modal', '$log',
function ($scope, $modal, $log) {
$scope.showForm = function () {
$scope.message = "Show Form Button Clicked";
console.log($scope.message);
var modalInstance = $modal.open({