課程
/前端開發(fā)
/Angular
/AngularJS表單驗證
o.scope = {??orgText :'=compare'?}
2016-09-26
源自:AngularJS表單驗證 4-3
正在回答
這是directive和html 傳遞數(shù)據(jù)的,"=" 通過 directive 的 attr 屬性的值在局部 scope 的屬性和父 scope 屬性名之間建立雙向綁定。當你想要一個雙向綁定的屬性的時候,你可以使用=來引入外部屬性。無論是改變父 scope 還是隔離 scope 里的屬性,父 scope 和隔離 scope 都會同時更新屬性值,因為它們是雙向綁定的關(guān)系?,詳情戳?http://stackoverflow.com/questions/14050195/what-is-the-difference-between-and-in-directive-scope-in-angularjs
Qzhor 提問者
和 html中的userData.password雙向綁定
這個等于號是啥意思
舉報
一看就明白的AngularJS表單驗證
Copyright ? 2025 imooc.com All Rights Reserved | 京ICP備12003892號-11 京公網(wǎng)安備11010802030151號
購課補貼聯(lián)系客服咨詢優(yōu)惠詳情
慕課網(wǎng)APP您的移動學習伙伴
掃描二維碼關(guān)注慕課網(wǎng)微信公眾號
2016-10-14
這是directive和html 傳遞數(shù)據(jù)的,"=" 通過 directive 的 attr 屬性的值在局部 scope 的屬性和父 scope 屬性名之間建立雙向綁定。當你想要一個雙向綁定的屬性的時候,你可以使用=來引入外部屬性。無論是改變父 scope 還是隔離 scope 里的屬性,父 scope 和隔離 scope 都會同時更新屬性值,因為它們是雙向綁定的關(guān)系?,詳情戳?http://stackoverflow.com/questions/14050195/what-is-the-difference-between-and-in-directive-scope-in-angularjs
2016-09-28
和 html中的userData.password雙向綁定
2016-09-26
這個等于號是啥意思