File

projects/aoc-client/core/models/aoc-model-manager.ts

Index

Methods

Constructor

constructor()

Methods

fieldMeta
fieldMeta(modelClass, field: string)
Type parameters :
  • T
Parameters :
Name Type Optional
modelClass No
field string No
meta
meta(modelClass)
Type parameters :
  • T
Parameters :
Name Optional
modelClass No
Returns : AocModelMeta
populate
populate(modelClass, data: S, control?: string)
Type parameters :
  • T
  • S

convert any data type to AocModel T : AocModel type S : Data type returns T[] if S is Array, T otherwise

Parameters :
Name Type Optional
modelClass No
data S No
control string Yes
registerMeta
registerMeta(metaMap: AocModelMetaMap)
Parameters :
Name Type Optional
metaMap AocModelMetaMap No
Returns : void
tableName
tableName(modelClass)
Type parameters :
  • T
Parameters :
Name Optional
modelClass No
Returns : any

results matching ""

    No results matching ""