Ng-Non-Bindable-5

 

First expression display the result "10" but second and third expression display as it because ng-non-bindable directive does not compile or bind data to the html element.

 
 
 
<!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title></title> <script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.4.2/angular.min.js"></script> </head> <body ng-app> <div> <p> {{'Expression: 5+5 = ' + (5+5)}}</p> <p ng-non-bindable>{{ 'Non-Bindable 2+2 = ' + (2+2)}} </p> <p class="ng-non-bindable"> {{ 'Non-Bindable with class 2+2 = ' + (2+2)}} </p> </div> </body> </html>
Output