ng-zorro-antd icon indicating copy to clipboard operation
ng-zorro-antd copied to clipboard

docs(module:message,notification): update import usages

Open HyperLife1119 opened this issue 4 months ago • 2 comments

PR Checklist

Please check if your PR fulfills the following requirements:

  • [x] The commit message follows our guidelines: https://github.com/NG-ZORRO/ng-zorro-antd/blob/master/CONTRIBUTING.md#commit
  • [ ] Tests for the changes have been added (for bug fixes / features)
  • [x] Docs have been added / updated (for bug fixes / features)

PR Type

What kind of change does this PR introduce?

  • [ ] Bugfix
  • [ ] Feature
  • [ ] Code style update (formatting, local variables)
  • [ ] Refactoring (no functional changes, no api changes)
  • [ ] Build related changes
  • [ ] CI related changes
  • [x] Documentation content changes
  • [ ] Application (the showcase website) / infrastructure changes
  • [ ] Other... Please describe:

What is the current behavior?

Issue Number: N/A

What is the new behavior?

更新了这两个组件的导入用法。

由于 NzMessageService 与 NzNotificationService 都是在 root 中提供的(providedIn: 'root'),并且这两个组件都是 standalone 的,因此不再需要导入对应的 NgModule 即可使用。

弃用这两个组件对应的 NgModule,无论是在 standalone 还是非 standalone 的应用中,这两个 NgModule 都是不必要的。

Does this PR introduce a breaking change?

  • [ ] Yes
  • [x] No

Other information

HyperLife1119 avatar Sep 27 '24 10:09 HyperLife1119