element to the variable _myText_:
Ng Ng Bind
# AngularJS `ng-bind` Directive
[ AngularJS Reference](#)
* * *
## AngularJS Example
Bind the innerHTML of the
[Try it Β»](#)
* * *
## Definition and Usage
The **ng-bind** directive tells AngularJS to replace the content of an HTML element with the value of a given variable or expression.
If the given variable or expression changes, the specified HTML element's content will also change.
* * *
## Syntax
or as a CSS class:
All HTML elements support this directive.
* * *
## Parameter Values
| Value | Description |
| --- | --- |
| _expression_ | Specifies the variable or expression to evaluate. |
* * AngularJS Reference](#)
YouTip