Skip to content

Commit b91cd5a

Browse files
thomastoyedavideast
authored andcommitted
Add StorageBucket injection token to storage docs (#1958)
1 parent 75f3dae commit b91cd5a

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

docs/storage/storage.md

+14
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,20 @@ import { environment } from '../environments/environment';
2626
export class AppModule {}
2727
```
2828

29+
The `StorageBucket` injection token can be used to customise the storage bucket.
30+
31+
```ts
32+
import {AngularFireStorageModule, StorageBucket} from '@angular/fire/storage';
33+
34+
@NgModule({
35+
providers: [
36+
{ provide: StorageBucket, useValue: 'my-bucket-name' }
37+
],
38+
...
39+
})
40+
export class AppModule {}
41+
```
42+
2943
### Injecting the AngularFireStorage service
3044

3145
Once the `AngularFireStorageModule` is registered you can inject the `AngularFireStorage` service.

0 commit comments

Comments
 (0)