How do I bind text to an ion-title

Seems like this should be trivial, but I’m having a hard time figuring this out. This doesn’t work. Changing the selectedMessageType doesn’t update the title.


get Title() {
        switch (this.selectedMessageType) {
            case MessageType.saved:
                return 'Saved';
            case MessageType.deleted:
                return 'Deleted';
                return 'Inbox';

Figured it out. Might be a bug in Typescript. Seems like my enum value it set to a string at one point, which fails the switch statement. “2” !== 2