差的B / W NG-模型和数据-NG-模型模型、数据、NG

由网友(月中薄雾漫漫白)分享简介:我新学的角度JS你能说NG-模型和数据-NG-模式的区别 <! -     名字:<输入类型=文本NG模型=FNAMEID =FNAME>    第二名称:LT;输入类型=文本NG模型=lname的ID =lname的>   - > 解决方案 最佳实践:使用破折号分隔的格式preFER(例...

我新学的角度JS你能说NG-模型和数据-NG-模式的区别

 <! -     名字:<输入类型=文本NG模型=FNAMEID =FNAME>    第二名称:LT;输入类型=文本NG模型=lname的ID =lname的>   - > 

解决方案

最佳实践:使用破折号分隔的格式preFER(例如NG绑定的ngBind)。 如果您要使用HTML验证工具,可以改用数据 - prefixed版本(例如数据-NG-绑定的ngBind)。上面显示的其他形式接受遗留原因但我们建议您避开他们。

I am newly learned the angular js can you say the difference between ng-model and data-ng-model

<!--
    First Name  :  <input type="text" ng-model="fname" id="fname">
    Second Name : <input type="text" ng-model="lname" id="lname">  
  -->
基于数据的体验洞察与验证 GSM模型

解决方案

Best Practice: Prefer using the dash-delimited format (e.g. ng-bind for ngBind). If you want to use an HTML validating tool, you can instead use the data-prefixed version (e.g. data-ng-bind for ngBind). The other forms shown above are accepted for legacy reasons but we advise you to avoid them.

阅读全文

相关推荐

最新文章