Skip to main content

Posts

Showing posts with the label What is ng-click in AngularJs?

AngularJs ng-click Example

Hello everyone, I am going to share the how to use AngularJs ngClick directive and its example in detail. Live demo link for output : http://embed.plnkr.co/F7TcI8/preview First, I am going to explain about ngClick directive . The ngClick directive is used the handle the user click events of the applications. Second, I am going to explain about syntax of ngClick . < button type ="button" ng-click ="clickMe(IsDisplay)"> NG-CLICK </ button >   Third, I am going to share the AngularJs click event code. var app = angular.module( 'myApp' , []);     app.controller( 'ngClickCtrl' , [ "$scope" , function ($scope) {         $scope.domain = "code-sample.com" ;         $scope.IsDisplay = false ;         $scope.clickMe = function (clicked) {             $scope.I...