Call controller function from directives


#1

please check this codepen

In this pen one controller is there and directive is there.

When you click on the choose country one html file load in popup and country list is display. now my problem is that like i have get data from web service based on selected country so i need to call function in controller. Please help i cannot understand what i have to do.

Please help me.

Thanks