PrimeNG: MenuItem icon from asset folder not showing

I added icon from asset folder for PrimeNG MenuItem like this following, but it is not showing. = [
            label: 'Dashboard',
            icon: 'dashboard-icon'

In css,

.dashboard-icon { background-image: url("./assets/icons/dashboard.svg"); }

Am I missing something, or what is the correct way?

Read more here:

Content Attribution

This content was originally published by rarahat02 at Recent Questions - Stack Overflow, and is syndicated here via their RSS feed. You can read the original post over there.

%d bloggers like this: