Ionic (Angular) text inputs

Hi Everyone,

I am very very new to all things ionic and angular.

I am trying to have an input box and I want to access what I type into it.

        <div class="item item-input" ng-show="shownewpostbox">
            <input name = "mypost"  id = "mypost" type = "mypost"  ng-model = "mypost">  

As far as I can tell from online resources, I should be able to access what is typed into the text box through $scope.mypost in my controlller. But that is not working… Any advice?

If you’re brand new, I’d suggest you learn Angular 2 and Ionic 2, and skip AngularJS and Ionic 1. Angular 2 has much better performance than AngularJS.