我是 Steroids 的新手,我希望导航抽屉在初始化后自动打开(抽屉的 AngularJS 模块名为“profile-filter-drawer”)。
这是我的代码:
angular
.module('profile-list')
.controller('IndexController', function($scope, supersonic) {
var drawerOptions = {
side: "left",
width: 150
}
supersonic.ui.drawers.init("profile-filter-drawer#index", drawerOptions).then(function()
{
supersonic.ui.drawers.open("left");
});
});
我在 Steroids Connect 中不断收到此日志,但我不明白为什么或如何修复它。
supersonic.ui.drawers.init rejected: {}
注意:如果它在 structure.coffee 中实例化但不是从我的 AngularJS 控制器中实例化,我的导航抽屉正在工作(AngularJS 模块有效)。
谢谢