Need activated class on custom element/directive click. ion-activated has no effect

Hi there,

I need to add and remove .activated class on a custom elementdirective click but I haven’t found a way to do so.

<my-custom-element ion-activated (click)="doSomething()">
    Tried this but it won't work.

Does anyone know how to add .activated class (same effect from a button click) on custom elements?