var app = angular.module("MyApp", ["ui.bootstrap.modal"]);

app.controller("MyCtrl", function ($scope) {

    $scope.open = function () {
        $scope.showModal = true;
    };

    $scope.ok = function () {
        $scope.showModal = false;
    };

    $scope.cancel = function () {
        $scope.showModal = false;
    };

});
