Hello,
there is maybe something missing. Your code don’t show how custombody is defined, how you grab it and when you grab it. For exampe, I hope it is correct, variable grabed with @Viewchild is avaialbe from ngAfterViewInit and later .
In ion-content I cannot use something like this [color] like in a ion-button.
So what I do and It works, I use @ViewChild(Content) content: Content;
and change background color like this.content.setElementStyle("background-color","black")
But this only change the color of the current page. But I have more than one page.
So how I can change the background color of all pages?