cironunes / angular-off-canvas

easily add an off-canvas navigation to your angular app
66 stars 20 forks source link

ng-view || document.body #29

Closed kishaningithub closed 9 years ago

kishaningithub commented 10 years ago

In the line var container = angular.element(config.container || document.body),

i think you can modify like

var container = angular.element(config.container || ngView || document.body),

Put the pseudocode since i dont know how to get ngView dom element

cironunes commented 9 years ago

To achieve that, you can just specify the ngView as the container. We don't want the ngView to be the default if no container is specified.