Index

core/src/resource.decorators.ts

Field
Field(mapFrom?: undefined)

Use this field decorator to parse the corresponding field from a json response by your API.

Parameters :
Name Optional
mapFrom Yes
Model
Model(options?: undefined)

Add this class decorator to your model to turn it into a Resource model, which means that it is considered as an endpoint on your API.

See ModelOptions on how to configure the name used in URLs.

This decorator is responsible for setting metadata, which is used internally, on the constructor of your class.

Parameters :
Name Optional
options Yes

core/src/utils.ts

toDash
toDash(name: undefined)
Parameters :
Name Optional
name No
toPlural
toPlural(name: undefined)
Parameters :
Name Optional
name No
toPluralDash
toPluralDash(name: undefined)
Parameters :
Name Optional
name No

result-matching ""

    No results matching ""