how to call function in ionic framework + angularjs?
I am using ionic framework to make android app .I am having cordova 5.1 version .first I create a project using command line ionic start myApp tabs .The I add android platform .Now I need to Communicate java code to javascript code .Using google I found I need to make custom plugin .But I did not found any solution on google how we will create custom plugin .I found ng-cordova which give own plugin we can't make customize plugin . I just need A button on UI .On click of that button I need to call java function having print some log on console .Then return success or error callback on