Edit This Code:
<!DOCTYPE html>
<html>
<script src="http://ajax.googleapis.com/ajax/libs/angularjs/1.4.8/angular.min.js"></script>
<body ng-app="">

<p>Double-click the header:</p>

<h1 ng-dblclick="count = count + 1" ng-init="count=0">Welcome</h1>

<p>The header has been double-clicked {{count}} times.</p>

<p>This example increases the value of the variable "count" every time you double-click the header.</p>

</body>
</html>


Result:
Try it Yourself - © w3schools.com
Privacy Policy