Angularjs Examples

AJS Examples

AngularJS ng-bind-Template Directive

The ng-bind-template directive is used to binds multiple expressions to the view. Unlike ng-Bind, the ngBindTemplate can contain multiple {{ }} expressions.


<p ng-bind-template="{{name}} {{address}} {{ email }}"></p> 

AngularJS ng-bind-Template Directive Example

<title>My first AngularJS ng-bind-template code</title>
<script SRC="">
//Defining Controller Using Standard Javascrip Object Constructor
function CustomerController($scope) {
  $scope.customer = { name: "Jimi Scott", address: "12-13-283/A1", email: "" };
<div ng-app="">
<div ng-controller="CustomerController"> 
<span ng-bind-template="{{}} {{ customer.address }} {{ }}"></span>

See Live Example