I cannot get the ons-popover to work on my Phonegap App. When I click on the button to show a popover the entire page dims but no content shows on the page. Below is the simple page I am using.
<ons-page id="testPopCtrlerid" ng-controller="TestPopController" style="background-color: white; color: black" >
<section>
<br><br><br><br><br>
<div style="text-align: center">
<div style="margin-top: 30px; text-align: center">
<ons-button id="my-btn" modifier="light" ng-click="showPopOver('#my-btn')">Show popover</ons-button>
</div>
</div>
</section>
<ons-template id="popovert.html">
<ons-popover modifier="android" direction="up down" cancelable>
<div style="text-align: center; opacity: 0.5; color: black; background-color: red; font-size: 10pt; z-index: 1000000">
<p style="text-align: center; opacity: 0.5; color: black; background-color: red; font-size: 10pt; z-index: 1000000">This is a popover!</p>
<p style="text-align: center; color: black; background-color: red; font-size: 10pt; z-index: 1000000">Click the background to remove the popover.</p>
</div>
</ons-popover>
</ons-template>
</ons-page>
app.controller('TestPopController', function ($scope) {
ons.createPopover('popovert.html').then(function(popover) {
$scope.popover = popover;
});
$scope.showPopOver = function(e) {
$scope.popover.show(e);
};
});