Advertisement
BigRob154

ionic cordova plugin manual bootstrapping

Sep 9th, 2015
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // workaround for cordova plugins. factories are loaded before cordova.deviceready is fired which causes issues
  2. ionic.Platform.ready(function() {
  3.     angular.bootstrap(document, ['app']);
  4.     angular.module('app').run(function ($ionicPlatform, $state) {
  5.         // rest of ionic init stuff
  6.     // $ionicPlatform.ready(function () {/* stuff */});
  7.     });
  8. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement