Ionic popup and best design practices

I’m in a need of a popup and the ionicPopup seems great. But it requires the controller to select the text + css classes to use. And those are things I want to define in the View, the HTML. But it doesn’t look like that’s achievable. Am I missing something?