You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The former works whether or not preload is set true in global options.
The problem is that
varstylesheetLoadPromises=[];angular.forEach(stylesheets,function(stylesheet,key){stylesheet=stylesheets[key]=parse(stylesheet);stylesheetLoadPromises.push(// Preload via ajax request$http.get(stylesheet.href).catch(function(response){if(DEBUG)$log.error('AngularCSS: Incorrect path for '+stylesheet.href);}));});if(angular.isFunction(callback)){$q.all(stylesheetLoadPromises).then(function(){callback(stylesheets);});}
The text was updated successfully, but these errors were encountered:
in
$css.preload
,stylesheet.href
is not tested for array-ness so,this works...
but this fails...
The former works whether or not
preload
is settrue
in global options.The problem is that
The text was updated successfully, but these errors were encountered: