Skip to content

Instantly share code, notes, and snippets.

@timbergus
Created August 21, 2013 11:05
Show Gist options
  • Select an option

  • Save timbergus/6293123 to your computer and use it in GitHub Desktop.

Select an option

Save timbergus/6293123 to your computer and use it in GitHub Desktop.
This is a basic angular code example from http://angularjs.org/. It shows how to build a simple editable field through a text input.
<!doctype html>
<html ng-app>
<head>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.0.7/angular.js"></script>
</head>
<body>
<div>
<label>Name:</label>
<input type="text" ng-model="yourName" placeholder="Enter a name here">
<hr>
<h1>Hello {{yourName}}!</h1>
</div>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment