How to include ui-grid font files into the project

前端 未结 8 788
独厮守ぢ
独厮守ぢ 2021-01-07 19:55

I have been stuck with anjularjs ui-grid, it\'s showing some Chinese symbols in place of icons. After digging about it I get to know I have to use some font-files provided b

8条回答
  •  情歌与酒
    2021-01-07 20:21

    I'm using Grunt I had to add

    copy: {
          dist: {
            files: [
               ...
            //font di ui grid
             {
                  expand: true,
                  flatten: true,
                  dest: 'dist/styles/',
                  src: ['bower_components/angular-ui-grid/ui-grid.ttf',
                        'bower_components/angular-ui-grid/ui-grid.woff',
                        'bower_components/angular-ui-grid/ui-grid.eot',
                        'bower_components/angular-ui-grid/ui-grid.svg'
                        ]
                }
        ]},
    

    to the Gruntfile.js In order to copy the ui-grid fonts in the style directory.

提交回复
热议问题