i new angularjs trying understand how can use ons.enableautostatusbarfill();
menus wont on take status bar.
here how have controller setup.
var mod = ons.bootstrap('app', ['onsen']); mod.controller('mycontroler', function($scope) { ons.ready(function() { // code inside... }); });
any suggestions helpful. using reference http://onsen.io/guide/overview.html#utilityapis
i tried solve way
var module = ons.bootstrap('my-app', ['onsen', 'ngsanitize']); var module = ons.enableautostatusbarfill();
it seems working not finding controllers now. getting error
uncaught typeerror: cannot read property 'controller' of undefined
i got solved. cordoda file @ bottom of page. due page not able load properly.
now added in pattern in index.html , got resolved.
<script src="lib/onsen/js/angular/angular.js"></script> <script src="lib/onsen/js/onsenui.js"></script> <script src="lib/onsen/js/angular/angular-sanitize.min.js"></script> <script src="cordova.js"></script> //this should added first before main custom.js file starts module. <script src="js/custom.js"></script>
thank support!