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 $promise attribute if we pass a resource instance, and returns a resolved promise for the passed object on anything else.

Returns

TypeDescription
Promise

self.getParams -> String[]

Gets the param names that are resource url type factory types for the given param definitions.

Returns

TypeDescription
String[]

self.getTypeNames -> String[]

Returns a list of names for all registered types.

Returns

TypeDescription
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.