Open Komald opened 6 years ago
It seems that while collapse-other="true"
its breaking at
angular.element(allmenu[i]).scope().$parent.$mdSidemenuContent.visible = false;
It's somehow not able to handle scope()
of angular.element(allmenu[i])
and that is throwing the undefined error
angular-material-sidemenu version: 1.0.5 I am using gulp to build and serve my web app. When I am using gulp-serve the project is starting from my root/src/main/ folder and angular-material-sidemenu is working properly.
but when I do gulp-build, a build is getting generated and saved in root/build/www and angular-material-sidemenu is getting compressed and saved in vendor.js file.
This is working correctly and journal state is loaded, but
is not expanding and showing the two buttons inside the md-sidemenu-content.
It's throwing error TypeError: Cannot read property '$parent' of undefined.