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 
http://codepen.io/anon/pen/PzEjQV . In this example I am passing $index to 
the function to know which option user has selected. 

1) How to acheive "Option1/Option2/Option3 selected"  without using $index. 
? 

2) When we click on Option1/Option2/Option3 items in menu, it will bring 
Prompt dialog and  I want submit button in the dialog and want to call API 
to fetch data on click of submit button.How can I achieve this ? eg: 
Option1Click(), Option2Click(),Option3Click() 

Thanks in advance

-- 
You received this message because you are subscribed to the Google Groups 
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to angular+unsubscr...@googlegroups.com.
To post to this group, send email to angular@googlegroups.com.
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to