how to make ionic popup error message on submit
<p>I need help to make the response a popup message rather than having it display below the submit button.</p>

<p>template.html</p>

<pre><code>&lt;div class="item item-text-wrap"&gt;
                        Response: &lt;b ng-bind="response"&gt;&lt;/b&gt;
                    &lt;/div&gt;
</code></pre>

<p>app.js</p>

<pre><code>$http.post(link, {
          inputName : $scope.data.inputName

        }).then(function (res){
           $scope.response = res.data;
        });
</code></pre>

<p>app.js I wan to add this popup dialog to the response message</p>

<pre><code>// An alert dialog
 $scope.showAlert = function() {
   var alertPopup = $ionicPopup.alert({
     title: 'Don\'t eat that!',
     template: 'It might taste good'
   });

   alertPopup.then(function(res) {
     console.log('Thank you for not eating my delicious ice cream cone');
   });
 };
</code></pre>