Skip to main content

Posts

Showing posts with the label ng-click

Assign the value to the variable in ng-click using AngularJS

<html ng-app> <head>      <title>ActiveTuts - AngularJs Tutorials</title> <script type="text/javascript"     src="http://ajax.googleapis.com/ajax/libs/angularjs/1.0.7/angular.min.js"></script> </head>      <body>      <div ng-controller=" TodoCtrl ">           <h2>Show and Hide the text using AngualrJs</h2>        <div ng-controller="TodoCtrl">           <input type="button" value="Show" ng-click =" showText=true ">           <input type="button" value="Hide" ng-click =" showText=false ">           <br/><br/><br/>           <div ng-show=" showTex...