<filename>components/icon/demo/iconfont.ts<gh_stars>1-10
import { Component } from '@angular/core';
import { NzIconService } from 'ng-zorro-antd';

@Component({
  selector: 'nz-demo-icon-iconfont',
  template: `
    <div class="icons-list">
      <i nz-icon [iconfont]="'icon-tuichu'"></i>
      <i nz-icon [iconfont]="'icon-facebook'" ></i>
      <i nz-icon [iconfont]="'icon-twitter'"></i>
    </div>
  `,
  styles  : [ `
    [nz-icon] {
      margin-right: 6px;
      font-size: 24px;
    }
  ` ]
})
export class NzDemoIconIconfontComponent {
  constructor(private _iconService: NzIconService) {
    this._iconService.fetchFromIconfont({
      scriptUrl: 'https://at.alicdn.com/t/font_8d5l8fzk5b87iudi.js'
    });
  }
}
