The Angular documentation is missing a few things. Can someone summarize what the undocumented features are?
Asked
Active
Viewed 5,599 times
12
-
1They're not undocumented anymore, though ... – John Feb 05 '13 at 04:44
1 Answers
11
Angular 1.0.5 and 1.0.4:
- Scope has two useful undocumented properties:
$parent- can be used as a hack for binding to a primitive property in a parent scope - example$$phase- can be used to determine if a $digest is already in progress - see this SO answer
- ng-switch has an undocumented
changeparameter that accepts an expression (example plnkr) - select has an undocumented
ng-changeparameter that accepts an expression - Attributes has an undocumented
$observemethod (although it is mentioned on the Directives page) - $cacheFactory has two undocumented methods (example fiddle)
get()info()
- the $location service has two undocumented events
$locationChangeStart(evt, newUrl, oldUrl)(example)$locationChangeSuccess(evt, newUrl, oldUrl)(see also What's the difference between $locationChangeSuccess and $locationChangeStart?)
- use ng-value (undocumented) with
input type="radio", see Disqus comment in API docs
Community
- 1
- 1
Mark Rajcok
- 362,217
- 114
- 495
- 492