Can't create popover of onsen-ui

712 Views Asked by At

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!)

1

There are 1 best solutions below

1
Andreas Argelius On BEST ANSWER

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.