The largest Interview Solution Library on the web



Warning: include(../../menu/leftMenu/angularjs-confirmbutton.php) [function.include]: failed to open stream: No such file or directory in /home/javatech/public_html/question/angularjsexample/angularjs-confirm-button.php on line 36

Warning: include(../../menu/leftMenu/angularjs-confirmbutton.php) [function.include]: failed to open stream: No such file or directory in /home/javatech/public_html/question/angularjsexample/angularjs-confirm-button.php on line 36

Warning: include() [function.include]: Failed opening '../../menu/leftMenu/angularjs-confirmbutton.php' for inclusion (include_path='.:/opt/alt/php53/usr/share/pear:/opt/alt/php53/usr/share/php') in /home/javatech/public_html/question/angularjsexample/angularjs-confirm-button.php on line 36
« Previous | 1 | 2 | 3 | Next »


<html>
<head>
<title></title>
<style type="text/css">
body
{
font-family: Arial;
font-size: 10pt;
}
</style>
</head>
<body>
<script type="text/javascript">
var app = angular.module('MyApp', [])
app.controller('MyController', function ($scope, $window) {
$scope.ShowConfirm = function () {
if ($window.confirm("want to save it")) {
$scope.Message = "You clicked YES.";
} else {
$scope.Message = "You clicked NO.";
}
}
});
</script>
<div ng-app="MyApp" ng-controller="MyController">
<input type="button" value="Show Confirm" ng-click="ShowConfirm()" />
<br />
<br />
<span ng-bind = "Message"></span>
</div>
</body>
</html>
« Previous | 1 | 2 | 3 | Next »


copyright © 2014 - all rights riserved by javatechnologycenter.com