डाउनलोड पी.डी.एफ. ई-बुक्स
AJS - Directives ng-mouseup

ng-mouseup directive; HTML Element पर जब mouse click किया जाता है तब दिया हुआ expression execute होता है |


Syntax for ng-mouseup Directive in AngularJS

<element ng-mouseup="expression">
</element>

ng-mouseup Attribute's Parameters in AngularJS

expression : यहाँ पर expression दिया जाता है |


ng-mouseup, ng-mouseup और ng-click ये तीनों directives एक जैसे है |


Example for ng-mouseup Directive using String in AngularJS

Source Code :
<html>
<head>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.6.4/angular.min.js"></script>
</head>
<body>

<div ng-app="">

<div ng-init="c = 0" ng-mouseup="c = c + 1">Click Me</div>

<p>Clicked {{c}} time(s)</p>

</div>

</body>
</html>
Output :
Click Me

Clicked {{c}} time(s)