Skip to content

Instantly share code, notes, and snippets.

@nicolasblanco
Last active December 11, 2015 04:49
Show Gist options
  • Select an option

  • Save nicolasblanco/4548087 to your computer and use it in GitHub Desktop.

Select an option

Save nicolasblanco/4548087 to your computer and use it in GitHub Desktop.
<!doctype html>
<html ng-app>
<head>
<script src="http://ajax.googleapis.com/ajax/libs/angularjs/1.0.3/angular.min.js"></script>
</head>
<div>
<span ng-init="editorEnabled = false" ng-hide="editorEnabled" ng-click="editorEnabled = true">
La valeur est : {{value}} ! Cliquez-moi pour la changer !
</span>
<span ng-show="editorEnabled">
<input type="text" size="30" ng-model="value" name="value" />
<button ng-click="editorEnabled = false">Ok</button>
</span>
</div>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment