How do I bind text to an ion-title


#1

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.

<ion-title>{{Title}}</ion-title>

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

#2

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