title: Ionic .showAddPopup not saving and sending data to Parse
body: <p>Been going through a tutorial on ionic and created an app with a popup with a few text fields, it works but the ok button does nothing when pressed and it should send the filled in data to my Parse database but doesn't. I've gone over the code a few times but not sure what I am doing wrong. Here is my <a href="http://i.stack.imgur.com/hScox.png" rel="nofollow">js file with the function in question</a>, and my corresponding <a href="http://i.stack.imgur.com/5bia9.png" rel="nofollow">index.html</a>. I think the error is in the friend.save because the error log shows issues with personEmail, personContact, etc., but not sure how to fix it. (Please note: very new to this/development).</p>
  
  <p>JS file:</p>
  
  <pre><code>$scope.showAddPopup : function () {
      var myPopup : $ionicPopup.sbow({
          template : '&lt;input type= "text" placebolder="Name" ng-model="new.personName"/&gt;&lt;br/&gt;
          &lt;input type= "text" placeholder="Phone" ng-model="new.personContact"/&gt;&lt;br/&gt;
          &lt;input type: "text" placeholder="Email" ng-model="new.personEmail"/&gt;&lt;br/&gt;
          &lt;input type= "text" placeholder="Display Picture URL" ng-model="new.personDisplayPicture"/&gt;'.
          title : 'Enter Details',
          subtitle : '',
          scope : $scope,
          buttons : [{
                  text : 'Cancel'
              }, {
                  text : 'OK',
                  type : 'button-assertive',
                  onTap : function (e) {
                      var newFriend = Parse.object.extend('friendslist');
                      var friend = new newFriend();
                      friend.save({
                          personName: $scope.new.personNane,
                          personEmail: $scope.new.personEnail,
                          personContact: $scope.new.personContact,
                          personDisplayPicture: $scope.new.personDisplayPicture
                      }).then(function (object) {
                          $ionicPopup.alert({
                              title : 'Friend Added',
                              template : 'Friend has been successfully added to the list.’
                              });
                      })
                  }
              }]
          });
      }
  </code></pre>