File

projects/congarevenuecloud/ecommerce/src/lib/modules/catalog/services/product-attribute-group.service.ts

Deprecated

This service is deprecated. ProductAttributeGroupService contains method to get the list of product attribute groups for the list of products/product Ids passed.

Usage

```typescript import { ProductAttributeGroupService, AObjectService} from '@congarevenuecloud/ecommerce'; export class MyComponent implements OnInit{ constructor( private productAttributeGroupService: ProductAttributeGroupService) } // or export class MyService extends AObjectService { private productAttributeGroupService: ProductAttributeGroupService = this.injector.get(ProductAttributeGroupService); } ```

Description

ProductAttributeGroupService contains method to get the list of product attribute groups for the list of products/product Ids passed.

Usage

Example :
import { ProductAttributeGroupService, AObjectService} from '@congarevenuecloud/ecommerce';

export class MyComponent implements OnInit{
constructor( private productAttributeGroupService: ProductAttributeGroupService)
}
// or
export class MyService extends AObjectService {
private productAttributeGroupService: ProductAttributeGroupService = this.injector.get(ProductAttributeGroupService);
}

Extends

AObjectService

Index

Properties
Methods

Methods

getProductAttributeGroups
getProductAttributeGroups(productList: Array<string | Product>)

Method returns an observable containing array of product attribute groups for the list of products/product Ids passed.

Example:

Example :
import { ProductAttributeGroupService, Product, ProductAttributeGroup } from '@congarevenuecloud/ecommerce';
import { Observable } from 'rxjs/Observable';

export class MyComponent implements OnInit{
attributeGroupList: Array<ProductAttributeGroup>;
attributeGroupList$: Observable<Array<ProductAttributeGroup>>;

constructor(private productAttributeGroupService: ProductAttributeGroupService){}

getProductAttributeGroups(productList: Array<string | Product>){
this.productAttributeGroupService.getProductAttributeGroups(productList).subscribe(attributeGroups => this.attributeGroupList = attributeGroups);
// or
this.attributeGroupList$ = this.productAttributeGroupService.getProductAttributeGroups(productList);
}
}

This method is a work in progress.

Parameters :
Name Type Optional Default value Description
productList Array<string | Product> No []

An array of products or a string of product Ids for which the product attribute group information needs to be acquired.

Returns : Observable<Array<ProductAttributeGroup>>

An observable containing array of product attribute groups. This method is a work in progress.

Properties

Protected productAttributeGrpMemberService
Type : ProductAttributeGroupMemberService
Default value : this.injector.get(ProductAttributeGroupMemberService)
Protected productAttributeService
Type : ProductAttributeService
Default value : this.injector.get(ProductAttributeService)
Protected translatorService
Type : TranslatorLoaderService
Default value : this.injector.get(TranslatorLoaderService)
type
Default value : ProductAttributeGroup

results matching ""

    No results matching ""