castillo-io / angular-css

CSS on-demand for AngularJS [Looking for New Maintainers]
http://castillo-io.github.io/angular-css/#/
MIT License
470 stars 86 forks source link

Fetch CSS files from different host #76

Closed mitchswaldman closed 7 years ago

mitchswaldman commented 7 years ago

Hello!

I'm using Angular CSS with UI router and AngularAMD, and I'm trying to configure some routes to pull stylesheets from a different host. The template URLs are being loaded by UI router correctly, but the request for the CSS files doesn't use the fully supplied host. Here's a sample route:

routes.authenticated.listing = angularAMD.route({
        name: 'dashboard.listing',
        parent: 'dashboard',
        url: '/listing',
        css: {
            href: host + 'static/webpages/css/listings.css',
            preload: true
        },
        templateUrl: host +'static/webpages/views/listing.html',
        controller: 'listingController',
        controllerUrl: 'controllers/listing'
    });

The host variable holds the URL for our Amazon S3 bucket. Is there not a way to tell Angular CSS to fetch a file from a different host? Thanks!

mitchswaldman commented 7 years ago

This was a non-issue.