Angular factory
ResourceUrlTypeFactoryService source
Description
Gets the actual service object
Methods
-
getPromise -> Promise
-
Get a promise of the given object. Returns the object itself if we pass a promise, returns the
$promiseattribute if we pass a resource instance, and returns a resolved promise for the passed object on anything else.Returns
Type Description Promise
-
self.getParams -> String[]
-
Gets the param names that are resource url type factory types for the given param definitions.
Returns
Type Description String[]
-
self.getTypeNames -> String[]
-
Returns a list of names for all registered types.
Returns
Type Description String[]
-
self.registerTransition
-
Registers a ui-router transition handler for the registered types above. The transition will wait for the promises to resolve before the routing finishes.