<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Call IONIC PopUp from javascript function in Software Archive</title>
    <link>https://community.intel.com/t5/Software-Archive/Call-IONIC-PopUp-from-javascript-function/m-p/1010433#M33915</link>
    <description>&lt;P&gt;I am using an Ionic popup and I want to open it using only javascript.&lt;/P&gt;

&lt;P&gt;I was able to open it using button:&lt;/P&gt;

&lt;PRE class="brush:xml;"&gt; &amp;lt;button  ng-controller="uib_w_69_popup_controller" ng-click="show()" class="button widget uib_w_28 d-margins "  data-uib="ionic/button" data-ver="0" id="site-1"&amp;gt;Button Name&amp;lt;/button&amp;gt;&lt;/PRE&gt;

&lt;P&gt;Now how do I open it using only javascript?&lt;/P&gt;

&lt;P&gt;Here is the js for the popup:&lt;/P&gt;

&lt;PRE class="brush:jscript;"&gt;function uib_w_69_popup_controller($scope, $ionicPopup) {

  // A confirm dialog

  $scope.show = function() {
    var confirmPopup = $ionicPopup.confirm({
      title: 'Consume Ice Cream',
      template: 'Are you sure you want to eat this ice cream?'
    });
    confirmPopup.then(function(res) {
      if(res) {
        console.log('You are sure');
      } else {
        console.log('You are not sure');
      }
    });
  };

};
&lt;/PRE&gt;

&lt;P&gt;Thanks for your help&lt;/P&gt;</description>
    <pubDate>Thu, 21 May 2015 04:06:12 GMT</pubDate>
    <dc:creator>David_G_4</dc:creator>
    <dc:date>2015-05-21T04:06:12Z</dc:date>
    <item>
      <title>Call IONIC PopUp from javascript function</title>
      <link>https://community.intel.com/t5/Software-Archive/Call-IONIC-PopUp-from-javascript-function/m-p/1010433#M33915</link>
      <description>&lt;P&gt;I am using an Ionic popup and I want to open it using only javascript.&lt;/P&gt;

&lt;P&gt;I was able to open it using button:&lt;/P&gt;

&lt;PRE class="brush:xml;"&gt; &amp;lt;button  ng-controller="uib_w_69_popup_controller" ng-click="show()" class="button widget uib_w_28 d-margins "  data-uib="ionic/button" data-ver="0" id="site-1"&amp;gt;Button Name&amp;lt;/button&amp;gt;&lt;/PRE&gt;

&lt;P&gt;Now how do I open it using only javascript?&lt;/P&gt;

&lt;P&gt;Here is the js for the popup:&lt;/P&gt;

&lt;PRE class="brush:jscript;"&gt;function uib_w_69_popup_controller($scope, $ionicPopup) {

  // A confirm dialog

  $scope.show = function() {
    var confirmPopup = $ionicPopup.confirm({
      title: 'Consume Ice Cream',
      template: 'Are you sure you want to eat this ice cream?'
    });
    confirmPopup.then(function(res) {
      if(res) {
        console.log('You are sure');
      } else {
        console.log('You are not sure');
      }
    });
  };

};
&lt;/PRE&gt;

&lt;P&gt;Thanks for your help&lt;/P&gt;</description>
      <pubDate>Thu, 21 May 2015 04:06:12 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Call-IONIC-PopUp-from-javascript-function/m-p/1010433#M33915</guid>
      <dc:creator>David_G_4</dc:creator>
      <dc:date>2015-05-21T04:06:12Z</dc:date>
    </item>
  </channel>
</rss>

