Merge pull request #4134 from martinmcwhorter/master

Allow annotated functions for onEnter and onExit
This commit is contained in:
Masahiro Wakame
2015-04-18 23:18:47 +09:00
+5 -3
View File
@@ -45,13 +45,15 @@ declare module angular.ui {
views?: {};
abstract?: boolean;
/**
* Callback functions for when a state is entered and exited. Good way to trigger an action or dispatch an event, such as opening a dialog.
* Callback function for when a state is entered. Good way to trigger an action or dispatch an event, such as opening a dialog.
* If minifying your scripts, make sure to explictly annotate this function, because it won't be automatically annotated by your build tools.
*/
onEnter?: Function;
onEnter?: Function|(string|Function)[];
/**
* Callback functions for when a state is entered and exited. Good way to trigger an action or dispatch an event, such as opening a dialog.
* If minifying your scripts, make sure to explictly annotate this function, because it won't be automatically annotated by your build tools.
*/
onExit?: Function;
onExit?: Function|(string|Function)[];
/**
* Arbitrary data object, useful for custom configuration.
*/