I am not able to inject styles using injectStylesUrls, how ever inline styles using injectStyles works #6374
Unanswered
sunilrathore24
asked this question in
Q&A
Replies: 1 comment 1 reply
-
i am dealing with the same issue. i am using swiper element with nuxt. did you manage to solve this in the past? Or does it make sense to create a bug report? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am not able to inject styles using injectStylesUrls, how ever inline styles using injectStyles works
I am using a swiper element with angular 15,
trying to override swiper css, the below code works fine
this.swiperParams = {
injectStyles: [
:host(.my-swiper) { background-color: red; color: blue; }
]}
but if I copy the same code in a file and use that file using
injectStylesUrls, it doesn't work.
stackblitz example...
https://stackblitz.com/edit/angular-6ftpvm?file=src%2Fmain.ts
Beta Was this translation helpful? Give feedback.
All reactions