Ng Ng Bind Template
# AngularJS `ng-bind-template` Directive
[ AngularJS Reference](#)
* * *
## AngularJS Example
Bind two expressions on the element:
var app = angular.module("myApp", []);
app.controller("myCtrl", function($scope) {
$scope.firstName = "John";
$scope.lastName = "Doe";
});
[Try it Β»](#)
* * *
## Definition and Usage
The **ng-bind-template** directive tells AngularJS to replace the content of an HTML element with the value of the given expression.
Use the **ng-bind-template** directive when you want to bind multiple expressions to an HTML element.
* * *
## Syntax
All HTML elements support this directive.
* * *
## Parameter Values
| Value | Description |
| --- | --- |
| _expression_ | One or more expressions to evaluate, each enclosed in {{ }}. |
* * AngularJS Reference](#)
YouTip