Skip to content

Instantly share code, notes, and snippets.

@rependa
Last active October 21, 2015 15:52
Show Gist options
  • Select an option

  • Save rependa/c46ee606b2756fc5b37d to your computer and use it in GitHub Desktop.

Select an option

Save rependa/c46ee606b2756fc5b37d to your computer and use it in GitHub Desktop.
bVaZQZ

AngularJS Expressions

AngularJS expressions are written inside double braces: {{ expression }}.

AngularJS expressions bind AngularJS data to HTML the same way as the ng-bind directive.

A Pen by Matt Rependa on CodePen.

License.

<div ng-app="">
<p>My first expression: {{ 5 + 5 }}</p>
<hr/>
<p>Name: <input type="text" ng-model="name" placeholder="name"></p>
<p>{{name}}</p>
</div>
<script src="//cdnjs.cloudflare.com/ajax/libs/angular.js/1.3.14/angular.min.js"></script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment