-
Does fontsource not work with Angular? |
Beta Was this translation helpful? Give feedback.
Answered by
jwr1
Apr 29, 2022
Replies: 1 comment
-
It does work with Angular, Fontsource was created to be framework agnostic. You can either put something like |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
jwr1
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It does work with Angular, Fontsource was created to be framework agnostic. You can either put something like
../../node_modules/@fontsource/alex-brush/400.css
understyleUrls
in yourapp.component.ts
file, or in one of your CSS files you can put@import '~@fontsource/alex-brush/400.css';
at the top. The second option is preferred as it is not a relative import.