@luchillo17 wrote:
I want to make a component that follows the ion-item css and behavior, i was thinking on making a custom
ion-item-sync
but it would break the css, also if i put the component as a child ofion-item
then a class i use for conditional background withngClass
would be inset and will not cover all theion-item
due to the padding it has.If i extend the ion-item the css are lost, how would i create a variable in the page that would be available in the new
sync
component?, in this case i want thesync
component to update thesynced
page variable, how do i do that?//customers page <ion-item [ngClass]="{'primary-disabled': synced}"> <sync></sync> </ion-item>
Posts: 1
Participants: 1