Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Official Angular bindings for Redux

License

NotificationsYou must be signed in to change notification settings

reduxjs/angular-redux

Repository files navigation

Official Angular bindings forRedux.Performant and flexible.

GitHub Workflow Statusnpm versionnpm downloads#redux channel on Discord

Installation

Angular Redux requiresAngular 19 or later.

Installing withng add

You can install the Store to your project with the followingng add command(details here):

ng add @reduxjs/angular-redux@latest

Optionalng add flags

flagdescriptionvalue typedefault value
--pathPath to the module that you wish to add the import for the StoreModule to.string
--projectName of the project defined in yourangular.json to help locating the module to add theprovideRedux to.string
--moduleName of file containing the module that you wish to add the import for theprovideRedux to. Can also include the relative path to the file. For example,src/app/app.module.ts.stringapp
--storePathThe file path to create the state in.stringstore

This command will automate the following steps:

  1. Updatepackage.json >dependencies with Redux, Redux Toolkit, and Angular Redux
  2. Runnpm install to install those dependencies.
  3. Update yoursrc/app/app.module.ts >imports array withprovideRedux({store})
  4. If the project is using astandalone bootstrap, it addsprovideRedux({store}) into the application config.

Installing withnpm oryarn

To use React Redux with your Angular app, install it as a dependency:

# If you use npm:npm install @reduxjs/angular-redux# Or if you use Yarn:yarn add @reduxjs/angular-redux

You'll also need toinstall Redux andset up a Redux store in your app.

Documentation

The React Redux docs are published athttps://angular-redux.js.org .

License

MIT


[8]ページ先頭

©2009-2025 Movatter.jp