首页 > 其他 > 详细

简话Angular 01 初识Angular 数据绑定

时间:2015-07-18 16:45:11      阅读:193      评论:0      收藏:0      [点我收藏+]

1. Angular有哪些突出优点

  1) MVC 基于Html-Javascript

  2) 依赖注入

  3) 数据双向绑定,响应式页面设计

  4) 模块化,自定义指令

 

2. 简话数据绑定

  1) 代码:

1 <input type="text" ng-model="hello1">
2 
3 <input type="text" ng-model="hello2">
4 
5 <textarea ng-bind="hello1" name="" id="" cols="30" rows="10"></textarea>
6 
7 <span class="bg-danger">{{hello1}} {{hello2}}</span>

 

简话Angular 01 初识Angular 数据绑定

原文:http://www.cnblogs.com/meteorcn/p/4657043.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!