我们可以将 SCSS 中的 boxicon 用于 Angular 项目吗?

Can we use boxicon in SCSS for an Angular project?

通常,我使用 boxicons 添加图标。图书馆在 CSS.

<link href='https://unpkg.com/boxicons@2.1.1/css/boxicons.min.css' rel='stylesheet'>

在一个Angular项目中,我需要用到SCSS,我不明白怎么用https://boxicons.com,请问?

您可以将其添加到 angular 项目 index.html 的 head 标记中

<head>
    <link href='https://unpkg.com/boxicons@2.1.1/css/boxicons.min.css' rel='stylesheet'>
</head>

然后像这样使用图标

<i class='bx bx-user'></i>