Quantcast
Channel: Ionic Framework - Ionic Forum
Viewing all articles
Browse latest Browse all 49253

Redirect to page depending on ion-select value

$
0
0

Hi everybody,

I’m a very beginner and “rookie” in Ionic vue (let’s say in programming generally). I want to create a simple application and therefore I want a Dropdown-menu (Ion-select) showing a variety of machines. After selecting and clicking “OK”, I want the app to direct me to the specific machine page. How can I do this?

            <ion-item>
                <ion-select label="Stacked label" label-placement="stacked" placeholder="Select Machine" @ionChange="handleChange($event)">
                    <ion-select-option value="Machine 1">Machine 1</ion-select-option>
                    <ion-select-option value="Machine 2">Machine 2</ion-select-option>
                    <ion-select-option value="Machine 3">Machine 3</ion-select-option>
                    <ion-select-option value="Machine 4">Machine 4</ion-select-option>
                    <ion-select-option value="Machine 5">Machine 5</ion-select-option>
                    <ion-select-option value="Machine 6">Machine 6</ion-select-option> 
                </ion-select>
            </ion-item>

methods: {
    handleChange(ev) {
        
    }
}

Or asking differently: What is my method?

Thank you in advance and sorry for this (possibly) stupid question!

2 posts - 2 participants

Read full topic


Viewing all articles
Browse latest Browse all 49253

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>