angularjs笔记
  • Introduction
  • 依赖注入
  • 作用域
  • 数据绑定
    • 控制器->模板->控制器->模板
  • 多个控制器
  • $scope对象
    • $apply方法、$digest方法
    • $watch方法
    • 示例:购物车
  • 模块和控制器
  • $provide对象的provider、factory、service方法
    • 多个控制器内共享数据
  • 过滤器(Filters)
    • number、currency、date
    • limitTo、lowercase、uppercase
    • filter、orderBy、json
    • 示例:产品列表
    • 自定义过滤器
  • 控制器(controller)
    • 显式和隐式依赖注入
  • 指令
    • Angular 内置指令
    • Angular 自定义指令
      • restrict、template、replace属性
      • templateUrl属性
      • transclude、priority、terminal属性
      • compile && link属性
      • controller && controllAs属性
      • require属性
      • scope属性
  • Module里其他方法
    • constant、value、run方法
  • Form表单
    • 示例:注册页
  • XHR和服务器端的通信
    • $http
  • JavaScript基础
    • .isFunction是否为函数
  • 资料链接
  • 功能组件
    • Tooltip
    • CSV
  • 其他
    • $watchCollection
    • $controller 继承
    • 两个对象合并
    • 页面关闭
    • AngularJs 时间格式化处理
    • 数据的本地存储
    • 页面的URL
Powered by GitBook
On this page
  • 渲染指令
  • 事件指令
  • 节点指令

Was this helpful?

  1. 指令

Angular 内置指令

渲染指令

  • ng-init

  • ng-bind

  • ng-repeat

    • $index 当前索引

    • $first 是否为头元素

    • $middle 是否为非头非尾元素

    • $last 是否为尾元素

  • ng-include

  • ng-bind-template

事件指令

  • ng-change

  • ng-click

  • ng-dblclick

  • ng-mousedown

  • ng-mouseenter

  • ng-mouseleave

  • ng-mousemove

  • ng-mouseover

  • ng-mouseup

  • ng-submit

节点指令

  • ng-style

  • ng-class

  • ng-class-even

  • ng-class-odd

  • ng-show

  • ng-hide

  • ng-switch

  • ng-src

  • ng-href

  • ng-if

Previous指令NextAngular 自定义指令

Last updated 5 years ago

Was this helpful?

ng-option
ng-selected