It wouldn’t because Ionic will just replace the header class with “myClass” instead of binding it to an Angular scope variable.
If the type
attribute accepted an angular expression rather than a string it may be possible, but for now I think you’d need a custom directive.
Devs, please feel free to correct me if I’m wrong, as I want to change the header color depending on which tab/controller is in view as well.