feat(core): PlatformRef and ApplicationRef support registration of disposal functions.

These functions will be called whenever the platform or application are being disposed.
This commit is contained in:
Alex Rickabaugh
2015-10-26 10:50:25 -07:00
parent b2dc5c2c7e
commit 8dd3082ea3
3 changed files with 44 additions and 0 deletions

View File

@ -98,6 +98,7 @@ var NG_API = [
'ApplicationRef.bootstrap()',
'ApplicationRef.dispose()',
'ApplicationRef.registerBootstrapListener()',
'ApplicationRef.registerDisposeListener()',
*/
'AsyncPipe',
'AsyncPipe.onDestroy()',
@ -873,6 +874,7 @@ var NG_API = [
'PlatformRef.application()',
'PlatformRef.asyncApplication()',
'PlatformRef.dispose()',
'PlatformRef.registerDisposeListener()',
*/
'PlatformRef.injector',
'Predicate:dart',