Created
May 25, 2015 14:47
-
-
Save jandrodev/4aebc69337edba27ae23 to your computer and use it in GitHub Desktop.
Angular ng-show Basic Example
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- Angular ng-show Basic Example --> | |
<button ng-click="mostrarInput()">Contacto</button> | |
<input type="text" placeholder="Contacto" ng-show="mostrar"> | |
<script> | |
var u87 = angular.module( 'u87', [] ); | |
u87.controller( 'mainController',['$scope', function($scope) { | |
$scope.mostrar = false; | |
$scope.mostrarInput = function() { | |
$scope.mostrar = !$scope.mostrar; | |
} | |
}] ); | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment