0

I work on Monaca platform to develop mobile app with onsen ui and angularjs

I want to add popover of onsen like this code:

angular.module('app', ['onsen','ngResource'])

.controller('DropdownController', function($scope) {
  ons.ready(function() {
    ons.createPopover('popover.html').then(function(popover) {
      $scope.popover = popover;
    });
  });
});

But I can't call createPopover! (is undefined!)

Andi Pavllo
  • 2,506
  • 4
  • 18
  • 30
Yaman ALTareh
  • 286
  • 3
  • 12

1 Answers1

1

Popover was added in 1.2.0, it looks like you're using an earlier version. If you update to 1.2.1 (latest) version, you should be able to use it.

Andreas Argelius
  • 3,604
  • 1
  • 13
  • 22
  • I'm using version 1.3.6 and I'm having the same issue with popover being undefined. Is there anything else that could be the problem? – Bob Joey Sep 02 '15 at 05:42