In this example ng-click directive call the showAlert() function which will show the alert "This is an example of ng-click".
ng-click
showAlert()