AngularJS 1.0总结
2016-04-06 14:41:44 7 举报
AI智能生成
AngularJS 1.0常用总结
作者其他创作
大纲/内容
Data Binding(数据绑定)
{{}}(加载比较慢时会出现{{data}})
ng-bind
MVC(Modal,View,Controller)
modal指api获取的数据
view指页面块
controller指控制器
Directive(指令)
ng-app
page(页面)
ng-include
ng-hide/ng-show
ng-if
ng-disabled
ng-class/ng-style
ng-class-odd/ng-class-even
ng-repeat
ng-view
event(事件)
ng-change
ng-click/ng-dbclick
ng-focus
子主题
ng-checked
ng-switch
ng-submit
ng-readonly
ng-keydown/ng-keypress/ng-keyup
ng-mousedown/ng-mouseenter/ng-mouseleave/ng-mouseover
ng-controller
ng-init
Filter(过滤器)
angularJS自带的
orderBy
number
limitTo
Json
filter
date
uppercase
Angular-filter插件
UI-Router(插件)
注入服务
$state
$view
$stateProvider
$urlRouterProvider
$locationProvider
$stateChangeState
$stateChangeSuccess
指令
ui-sref
ui-sref-active
ui-view
ui-state
Form Validation(表单验证)
input
checkbox
ng-true-value
ng-false-vale
ng-checked
radio
ng-value
required
date/datatime-local
min
max
ng-required
text/time/url/email/textarea
required
ng-minlength
ng-maxlength
ng-pattern(正则表达式)
ng-required
ng-trim
select
ng-selected
ng-options
ng-modal/ng-bind
ng-message
Service(依赖注入)
$q
$http
$log
$location
$scope
$rootScope
$window
$timeout
$interval
$animate
$filter
$cookies/$cookieStore
$servicee
$factory
收藏
0 条评论
下一页