AngularJS

AngularJS Directives

AngularJS Filters and Elements

AngularJS Tutorials

AngularJS ng bind html Directive

AngularJS ng-bind-html Directive

 

 

The ng-bind-html directive is a secure way of binding content to an HTML element. We should check dangerous code in HTML by including the angular-sanitize.js module in our application and by using ngSanitize function.

 

Syntax:-

 

< element ng-bind-html="expression" >< /element >

 

Further Explanation:-

 

Value Description
expression Specifies a variable, or an expression to evaluate.

Code Explanation

All Tutorials related to AngularJS Directives

All Sections related to AngularJS