GitHub

DaffInMemoryBackendCategoryService

Service

import { DaffInMemoryBackendCategoryService } from '@daffodil/category/driver/in-memory'

An in-memory service that mocks out the backend services for getting categories. See the angular in memory documentation for more details.

@Injectable()
class DaffInMemoryBackendCategoryService implements InMemoryDbService, DaffInMemorySingleRouteableBackend {
  readonly collectionName: "category" = DAFF_CATEGORY_IN_MEMORY_COLLECTION_NAME
  get rootCategory(): DaffCategory
  get categories(): DaffCategory[]
  get categoryPageMetadata(): DaffCategoryPageMetadata

  get(reqInfo: any): any
}

Properties

collectionName
"category"
DefaultDAFF_CATEGORY_IN_MEMORY_COLLECTION_NAME
Description
rootCategory
DaffCategory
Default –
Description
categories
DaffCategory[]
Default –
Description

The collection of categories in the backend.

categoryPageMetadata
DaffCategoryPageMetadata
Default –
Description

The metadata associated with the current page.

() Methods

get
any

Get a category.

Parameters
ParameterreqInfo: any
Description