We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hello,
I've just installed angular.panels by bower and configured as in the tutorial.
when I call panels.open('left-menu') I get this error:
TypeError: Cannot read property 'scope' of undefined at Object.s.open (angular.panels.min.js:formatted:21)
here is my config:
.config(['panelsProvider', function (panelsProvider) { panelsProvider .add({ id: 'left-menu', position: 'left', size: '700px', templateUrl: 'components/leftmenu/leftmenu.html', controller: 'LeftMenuCtrl' }); }
and this is my controller:
(function() { 'use strict'; function LeftMenuCtrl($scope) { var self = this; self.init = function() { console.log('left panel'); }; self.init(); } angular.module('myapp') .controller('LeftMenuCtrl', ['$scope', LeftMenuCtrl]); })();
Any ideas?
thanks in advance, Daniele
The text was updated successfully, but these errors were encountered:
@eu81273 I am also facing the same issue.
Sorry, something went wrong.
@danidev I got it working. You need to put this div in your html too:
<div data-panels="true"></div>
No branches or pull requests
Hello,
I've just installed angular.panels by bower and configured as in the tutorial.
when I call panels.open('left-menu') I get this error:
here is my config:
and this is my controller:
Any ideas?
thanks in advance,
Daniele
The text was updated successfully, but these errors were encountered: