Invoking a function with dependencies in Angular
问题 Using Angular 5 and UIRouter state routing. I'm using an additional custom route state property as per this interface. interface AugmentedNg2RouteDefinition extends Ng2StateDeclaration { default?: string | ((...args: any[]) => string | Promise<string>); } When I define an abstract state, I can now add a default property to it as well, so when one would try to route to an abstract state, the default should redirect them to configured default child state. As can be understood from the interface