arkon

Results 201 comments of arkon

Good idea! Do you know of any other directives/components that have a similar feature to what you're looking for? I'm curious as to how something like that is typically done.

I imagine it's getting lost here: https://github.com/arkon/ng-inline-svg/blob/5b675dce50b62e3dbd9d73cf38826c7fb81de7e0/src/svg-cache.service.ts#L95-L98 Does that relative path actually resolve to a valid URL? (i.e. what's the absolute form of it?)

I still need to think about this but why aren't you setting the cache control on the SVG assets instead? The browser can handle that perfectly fine without any of...

https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Cache-Control

You should be able to use the `inline-svg` component IIRC.

Whoops sorry. I think it's still the directive, but using the `injectComponent` and `replaceContents` inputs.

Sorry, it's been a long time since I originally wrote this and I barely look at it nowadays. I don't think there's a way to just flat out replace your...

Was this actually built and tested? I would at least expect the lock file to be updated too if so.

Thanks for taking the time to contribute, but I've decided to stop maintaining this package. For more details, check out https://github.com/arkon/ng-sidebar/issues/229 If you're interested in maintaining a fork, please do...

I'm not sure if it's really practical as a library user to provide data URIs. That said, I'm not entirely sure why you would readily have an SVG as a...