Hi Sandip,
This error beacuse the function is not visible in this context.
Good practice would be to have the event handler in controller.
Below example has both scenarios mentioned above
http://jsbin.com/uxokuc/237/edit
Thanks and Regards, Venkatesh