Skip to content

Instantly share code, notes, and snippets.

Created December 14, 2013 14:14
Show Gist options
  • Save anonymous/7959627 to your computer and use it in GitHub Desktop.
Save anonymous/7959627 to your computer and use it in GitHub Desktop.
A Pen by mehmetcanker.
<html ng-app="mehmetCanker">
<head>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/angularjs/1.2.3/angular.min.js"></script>
</script>
</head>
<body>
<div ng-controller="ngShowExample">
<button ng-model="status" ng-init="status=false" ng-click="status=!status">Toggle Button</button>
<p ng-show="status">Showed</p>
<p> {{' Status: ' + status }}</p>
</div>
</body>
</html>
//More info htpp://mehmetcanker.com
//Module Defining
//Module Tanimlaniyor.
var myApp = angular.module('mehmetCanker', []);
//Creating Controller in mehmetCanker module
//Olusturulan module icine controller //tanimladik
myApp.controller('ngShowExample', ['$scope', function($scope){
//NO CONTROLLER Logic Required
}]);
/*
---AngularJS Toggle Button---
For More Examples AngularJS
http://mehmetcanker.com
*/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment