Angular provider

ResourceUrlTypeFactoryServiceProvider source

Description

Provider for the ResourceUrlTypeFactoryService

Methods

provider.registerType (typeName, pattern, pkAttr, fetchFn)

Construct a type definition for a REST ui-router type

Parameters

NameTypeDescription
typeName String

Name for the type

pattern RegExp

Pattern to match for

pkAttr String

Name of the PK attribute

fetchFn Function

Function to fetch the object from REST API (supports injection)