Bootstrap 4 Glyphicons not showing on Angular 4 project

后端 未结 1 2071
一生所求
一生所求 2021-02-19 08:16

I\'m working on an Angular 4 Project using Bootstrap 4 with Sass, and I want to use the glyphicons but when I use the following code:

1条回答
  •  北海茫月
    2021-02-19 08:37

    Bootstrap 4 dropped Glyphicons support. (see: https://getbootstrap.com/docs/4.0/migration/#components)

    This means that you'll need to use some other icon font, like Font Awesome.

    Quick start for Font Awesome

    1. Grab the script from the get started page
    2. Paste it in your
    3. Start using! Search for the icons on FontAwesome.com
    4. Explore the docs to unleash the full potential of Font Awesome!

    Example:

    
    
      
        
        Bootstrap + Font Awesome
        
        
      
      
        

    That was easy!

    Angular Font Awesome component

    The Font Awesome team is working on an Angular Font Awesome component. It is right now in pre-release, but you can find it here.

    0 讨论(0)
提交回复
热议问题