` 组件,它预先配置了一个用于排序和分页的数据源。
+
+
ng generate @angular/material:table
### Update schematics
+### 更新原理图
+
+
The `ng update` command can be used to update your workspace's library dependencies. If you supply no options or use the help option, the command examines your workspace and suggests libraries to update.
+`ng update` 命令可以用来更新工作空间的库依赖。如果你没有提供任何选项或使用了 help 选项,该命令会检查你的工作空间并建议要更新哪些库。
+
+
ng update
We analyzed your package.json, there are some packages to update:
@@ -95,27 +182,48 @@ ng update
There might be additional packages that are outdated.
Run "ng update --all" to try to update all at the same time.
+
If you pass the command a set of libraries to update (or the `--all` flag), it updates those libraries, their peer dependencies, and the peer dependencies that depend on them.
+如果你给这个命令指定一组要更新的库(或 `--all` 标志),它就会更新这些库、这些库的对等依赖,以及对等依赖的对等依赖。
+
+
If there are inconsistencies (for example, if peer dependencies cannot be matched by a simple [semver](https://semver.io/) range), the command generates an error and does not change anything in the workspace.
+如果存在不一致(例如,如果在某个简单的 [semver](https://semver.io/) 范围内无法匹配对等依赖),那么该命令会生成一个错误,并且不会更改工作空间中的任何内容。
+
+
We recommend that you do not force an update of all dependencies by default. Try updating specific dependencies first.
+我们建议您不要强制更新所有的依赖项,而应该首先尝试更新特定的依赖项。
+
+
For more about how the `ng update` command works, see [Update Command](https://github.com/angular/angular-cli/blob/master/docs/specifications/update.md).
+有关 `ng update` 命令工作原理的更多信息,请参见“[更新命令”](https://github.com/angular/angular-cli/blob/master/docs/specifications/update.md) 。
+
+
If you create a new version of your library that introduces potential breaking changes, you can provide an *update schematic* to enable the `ng update` command to automatically resolve any such changes in the project being updated.
+如果你创建的新版本的库引入了潜在的重大更改,你可以提供一个*更新原理图*,让 `ng update` 命令能够自动解决所更新项目中的任何重大修改。
+
+
For example, suppose you want to update the Angular Material library.
+例如,假设您要更新 Angular Material 库。
+
+
ng update @angular/material
This command updates both `@angular/material` and its dependency `@angular/cdk` in your workspace's `package.json`.
If either package contains an update schematic that covers migration from the existing version to a new version, the command runs that schematic on your workspace.
+
+该命令会在你的工作空间的 `package.json` 中更新 `@angular/material` 及其依赖项 `@angular/cdk` 。如果任何一个包中包含了涵盖从现有版本到新版本的迁移规则的更新原理图,那么该命令就会在你的工作区中运行这个原理图。