Override service in hybris smart edit 2015

40 Views Asked by At

How to override service.

@SeDowngradeService()
export class EditorEnablerService {} // This service is called when edit button is clicked

It calls this.openEditorModalService.open()

@SeDowngradeService(IEditorModalService)
@GatewayProxied('open', 'openAndRerenderSlot', 'openGenericEditor')
export class EditorModalService extends IEditorModalService {}

But

this.openEditorModalService.open()

opens the out of the box generic editor it is not calling our customized generic editor modal.

0

There are 0 best solutions below