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
}
"category"| Default | DAFF_CATEGORY_IN_MEMORY_COLLECTION_NAME |
|---|---|
| Description |
DaffCategory| Default | – |
|---|---|
| Description |
DaffCategory[]| Default | – |
|---|---|
| Description | The collection of categories in the backend. |
DaffCategoryPageMetadata| Default | – |
|---|---|
| Description | The metadata associated with the current page. |
anyGet a category.
| Parameter | reqInfo: any |
|---|---|
| Description |