@ngrx添加到你的项目

在您的控制台中,运行以下命令将 @ngrx 添加到package.json中的依赖关系列表中:

  1. npm install @ngrx/core @ngrx/store --save

如果你打算使用 @ngrx/effects 扩展来添加附加功能,那么还可以运行以下命令:

  1. npm install @ngrx/effects --save