Ionic Framework: $scope is undefined in simple alert

This is my code… I don’t know how to explain but it always say undefined when I enter something on the text box… but $scope.goaltitle = “something” is working on the .controller(); … Answer Short Answer The root cause of this issue is, ion-content does create a prototypically inherited child scope, that’s why goaltitle(primitive type) of controller scope is different than the goaltitle you are using on ng-model Ideally practice is to follow dot rule while defining view model. So that prototypal inheritance rule will get followed with scope hierarchy. You should define object and then do assign all the