我在Monaca平台上开发带有onsen用户界面和angularjs的移动应用程序。
我想添加像以下代码那样的onsen弹出:
angular.module('app', ['onsen','ngResource'])
.controller('DropdownController', function($scope) {
ons.ready(function() {
ons.createPopover('popover.html').then(function(popover) {
$scope.popover = popover;
});
});
});但我不能给createPopover打电话!(未定义!)
发布于 2014-12-09 03:06:54
在1.2.0中添加了Popover,看起来您使用的是更早的版本。如果您更新到1.2.1 (最新)版本,您应该能够使用它。
https://stackoverflow.com/questions/27364698
复制相似问题