Angular 的未记录功能是什么?
Angular 1.0.5和1.0.4:
- Scope有两个有用但未记录的属性:
$parent
- 可以用作绑定到父作用域中基本属性的方法 - 例子$$phase
- 可以用于确定$digest是否已经在进行中 - 参见 这个Stack Overflow答案
- ng-switch有一个未记录的
change
参数,接受一个表达式 (例子 plnkr) - select有一个未记录的
ng-change
参数,接受一个表达式 - Attributes有一个未记录的
$observe
方法(虽然它在指令页面上有提到) - $cacheFactory有两个未记录的方法 (例子 fiddle)
get()
info()
- $location服务有两个未记录的事件
$locationChangeStart(evt, newUrl, oldUrl)
(例子)$locationChangeSuccess(evt, newUrl, oldUrl)
(另请参见 什么是$locationChangeSuccess和$locationChangeStart之间的区别?)
- 用ng-value(未记录)与
input type="radio"
,参见API文档中的Disqus评论