Completely new to AngularJS, I am trying to understand how to use ons.enableAutoStatusBarFill();
in order to prevent my menus from overlapping the status bar.
This is how I have set up my controller:
var mod = ons.bootstrap('app', ['onsen']);
mod.controller('MyControler', function($scope) {
ons.ready(function() {
// code inside...
});
});
Any suggestions would be greatly appreciated. I am referring to this documentation:
I attempted to resolve it like this:
var module = ons.bootstrap('my-app', ['onsen', 'ngSanitize']);
var module = ons.enableAutoStatusBarFill();
It appears to be working, but now it is unable to find my controllers. I am receiving this error message:
Uncaught TypeError: Cannot read property 'controller' of undefined