ng-ytl-zorro-antd
Version:
An enterprise-class UI components based on Ant Design and Angular
20 lines (15 loc) • 701 B
text/typescript
import {Component} from '@angular/core';
import {NzNotificationService} from '../../../index.showcase';
({
selector : 'nz-demo-notification-basic',
template : `
<button nz-button [nzType]="'primary'" (click)="createBasicNotification()">打开通知提示框</button>
`,
styles : []
})
export class NzDemoNotificationBasicComponent {
constructor(private _notification: NzNotificationService) { }
createBasicNotification() {
this._notification.blank('这是标题', '这是提示框的文案这是提示框的文案这是提示框的文案这是提示框的文案这是提示框的文案这是提示框的文案这是提示框的文案');
}
}