“ng-click” not working out of “ion-content” in Ionic framework

I have an input box with the ng-model attribute in my ionic based application. The code inside the ion-content tag: And in the footer-bar I have this: The alert result is undefined. NOTE: when I put the button inside the ion-content it works fine. (It means js codes works fine) Any idea? Answer The reason behind your problem is, ion-content directive does create a child scope which is prototypically inherited from the parent scope. So by placing myNumber in input ng-model does get added inside the scope of ion-content, which is different that the controller myNumber number scope variable. To