YouTip LogoYouTip

Ng Ng Bind

# AngularJS `ng-bind` Directive [![Image 3: AngularJS Reference](#) AngularJS Reference](#) * * * ## AngularJS Example Bind the innerHTML of the

element to the variable _myText_:

[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](#)
← Ionic CardIonic Button β†’