Insert css into new app in browser


#1

using this plugin http://ngcordova.com/docs/plugins/inAppBrowser/ I can insert css / script liike

      $rootScope.$on('$cordovaInAppBrowser:loadstart', function(e, event){
//alert('debug') // ok
         $cordovaInAppBrowser.insertCSS({
            code: 'body {background:blue!important;}'
          });

but in my experience the opened site doesn’t have any changes. Is the css inserted into the new window or inserted into our ionic app?


#2

change loadstart to loadstop, otherwise it won’t be worked.