AngularJS基礎(chǔ) ng-non-bindable 指令詳細(xì)介紹
AngularJS ng-non-bindable 指令
AngularJS 實(shí)例
以下段落不需要使用 AngularJS 來編譯:
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<script src="http://apps.bdimg.com/libs/angular.js/1.4.6/angular.min.js"></script>
</head>
<body>
<div ng-app="">
<p>使用 AngularJS: {{ 5+5 }}</p>
<p ng-non-bindable>不使用 AngularJS: {{ 5+5 }}</p>
</div>
<p>如果你不想使用 AngularJS 執(zhí)行表達(dá)式可以使用 ng-non-bindable 。</p>
</body>
</html>
定義和用法
ng-non-bindable 指令用于告訴 AngularJS 當(dāng)前的 HTML 元素或其子元素不需要編譯。
語法
<element ng-non-bindable></element>
所有的 HTML 元素支持該指令。
參數(shù)值
沒有參數(shù)值。
以上就是對(duì)AngularJS ng-non-bindable 指令資料的整理,后續(xù)繼續(xù)更新,謝謝大家支持!
- AngularJS基礎(chǔ) ng-selected 指令簡(jiǎn)單示例
- AngularJS基礎(chǔ) ng-repeat 指令簡(jiǎn)單示例
- AngularJS基礎(chǔ) ng-readonly 指令簡(jiǎn)單示例
- AngularJS基礎(chǔ) ng-paste 指令簡(jiǎn)單示例
- AngularJS基礎(chǔ) ng-options 指令詳解
- AngularJS基礎(chǔ) ng-open 指令簡(jiǎn)單實(shí)例
- AngularJS基礎(chǔ) ng-mouseover 指令簡(jiǎn)單示例
- AngularJS基礎(chǔ) ng-mousemove 指令簡(jiǎn)單示例
- AngularJS基礎(chǔ) ng-mouseleave 指令詳解
- AngularJS基礎(chǔ) ng-show 指令簡(jiǎn)單示例
相關(guān)文章
AngularJS基礎(chǔ) ng-init 指令簡(jiǎn)單示例
本文主要介紹AngularJS ng-init 指令,這里幫大家整理了關(guān)于ng-init 指令的基本知識(shí)資料,并附有簡(jiǎn)單的代碼示例,有需要學(xué)習(xí)的小伙伴可以參考下2016-08-08
詳解Angular CLI + Electron 開發(fā)環(huán)境搭建
本篇文章主要介紹了Angular CLI + Electron 開發(fā)環(huán)境搭建,具有一定的參考價(jià)值,有興趣的可以了解一下2017-07-07
Angularjs全局變量被作用域監(jiān)聽的正確姿勢(shì)
這篇文章主要介紹了Angularjs全局變量被作用域監(jiān)聽的正確姿勢(shì)的相關(guān)資料,需要的朋友可以參考下2016-02-02
Angular 實(shí)現(xiàn)輸入框中顯示文章標(biāo)簽的實(shí)例代碼
這篇文章主要介紹了Angular 實(shí)現(xiàn)輸入框中顯示文章標(biāo)簽的實(shí)例代碼,非常不錯(cuò),具有一定的參考借鑒價(jià)值,需要的朋友可以參考下2018-11-11

