# provideValdres

Signature
`provideValdres(options?: ValdresOptions): EnvironmentProviders`

valdres-angular
Provide a store to your Angular app

Registers a valdres store in Angular's dependency injection system, making it available to all components via the `inject*` functions.

## Usage

```ts
import { bootstrapApplication } from "@angular/platform-browser"
import { provideValdres } from "valdres-angular"
import { AppComponent } from "./app.component"

bootstrapApplication(AppComponent, {
    providers: [provideValdres()],
})
```

## With a custom store

```ts
import { store } from "valdres"
import { provideValdres } from "valdres-angular"

const myStore = store()

bootstrapApplication(AppComponent, {
    providers: [provideValdres({ store: myStore })],
})
```

## See also

- [injectStore](https://valdres.dev/angular/injectStore) — access the store in components
- [store](https://valdres.dev/valdres/store) — create a store instance
