ng-non-bindable

What is ng-non-bindable: ng-non-bindable used when we don't want any angularjs expression .

Description of ng-non-bindable: ng-non-bindable render a angularjs expression as it. There is no rendering for Angularjs expression where we mentioned this directive. It is show the raw angularjs code after rendering. It is useful when we want a angularjs expression display its self.

Syntax of ng-non-bindable:
<elementname ng-non-bindable>{{myexpression}}</elementname>
    OR
    <div ng-non-bindable>{{myexpression}}</div

How to Use ng-non-bindable/ng-non-bindable Example:

AngularJs Example :
    <div>
        Angularjs Example of ng-non-bindable
        <br />
        <div ng-init="myexpression='This is angularjs example of ng-non-bindable'">
            <div>{{myexpression}}</div>
            <div ng-non-bindable>{{myexpression}}</div>
        </div>
    </div>
    o/p:   Angularjs Example of ng-non-bindable
           {{myexpression}}

No comments :

Post a Comment