SoFunction
Updated on 2025-04-12

AngularJS basics ng-non-bindable directive detailed introduction

AngularJS ng-non-bindable directive

AngularJS instance

The following paragraphs do not need to be compiled using AngularJS:

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<script src="/libs//1.4.6/"></script>
</head>
<body>

<div ng-app="">

<p>use AngularJS: {{ 5+5 }}</p>
<p ng-non-bindable>不use AngularJS: {{ 5+5 }}</p>

</div>

<p>如果你不想use AngularJS 执行表达式可以use ng-non-bindable 。</p>

</body>
</html>

Definition and usage

ng-non-bindableDirectives are used to tell AngularJS that the current HTML element or its child elements do not need to be compiled.

grammar

<element ng-non-bindable></element>

All HTML elements support this directive.

Parameter value

No parameter value.

The above is the compilation of AngularJS ng-non-bindable instruction information. We will continue to update it in the future. Thank you for your support!