I am working on google material design and angularjs frameworks and in my page I have small menu with Option1,Option2 and Option3. Here is the pen menu demo
. In this example I am passing $index to the function to know which option user has selected.
1) Can we acheive "Option1/Option2/Option3 selected" without using $index. ?
2)When we click on Option1/Option2/Option3 items in menu, it will bring Prompt dialog I want submit button and want to call API to fetch data on click of submit button.How can I achieve this? eg: Option1Click(), Option2Click(),Option3Clic