Conditional Routing Button

I’m new to Ionic and I’m trying to set up a button to redirect me to a certain page depending on two ID values from two select forms. I tried various methods but I can’t seem to make it work. I’d appreciate it if anyone could help me out here. Thanks.

.html file:

.ts file: