Global footer
IMPORT MODULE

The footer is part of the global navigation as a supplement to the top navigation.

Examples

演示

基本页脚。

expand codeexpand code
import { Component } from '@angular/core';
import { GlobalFooterLink } from '@delon/abc/global-footer';

@Component({
  selector: 'components-global-footer-basic',
  template: `
    <div style="height: 280px;"></div>
    <global-footer [links]="links">
      Copyright<i nz-icon nzType="copyright" class="mx-sm"></i>2019<a href="//github.com/cipchk" target="_blank" class="mx-sm">卡色</a>出品
    </global-footer>
  `,
  styles: [
    `
      :host {
        display: block;
      }
    `,
  ],
})
export class ComponentsGlobalFooterBasicComponent {
  links: GlobalFooterLink[] = [
    {
      title: '帮助',
      href: 'https://ng-alain.com/',
      blankTarget: true,
    },
    {
      title: 'Github',
      href: 'https://github.com/ng-alain',
      blankTarget: true,
    },
    {
      title: '预览',
      href: 'https://ng-alain.surge.sh/',
      blankTarget: true,
    },
  ];
}
自定义

使用 global-footer-item 自定义图标。

expand codeexpand code
import { Component } from '@angular/core';

@Component({
  selector: 'components-global-footer-custom',
  template: `
    <div style="height: 280px;"></div>
    <global-footer>
      <global-footer-item href="https://ng-alain.com/" blankTarget>帮助</global-footer-item>
      <global-footer-item href="https://github.com/ng-alain" blankTarget>
        <i nz-icon nzType="github"></i>
      </global-footer-item>
      <global-footer-item href="https://ng-alain.surge.sh/" blankTarget>预览</global-footer-item>
      Copyright<i nz-icon nzType="copyright" class="mx-sm"></i>2019<a href="//github.com/cipchk" target="_blank" class="mx-sm">卡色</a>出品
    </global-footer>
  `,
  styles: [
    `
      :host {
        display: block;
      }
    `,
  ],
})
export class ComponentsGlobalFooterCustomComponent {}

API

PropertyDescriptionTypeDefault
[links]Link dataGlobalFooterLink-
[copyright]Copyright InformationTemplateRef-
PropertyDescriptionTypeDefault
ng-contentTitlestring-
[href]Routing linkstring-
[blankTarget]Whether to open a new windowbooleanfalse
PropertyDescriptionTypeDefault
[title]Titlestring-
[href]Routing linkstring-
[blankTarget]Whether to open a new windowbooleanfalse