You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Update emulators.md
Added emulator startup information and clarified the environment.useEmulators. Updated the localhost address
* Update emulators.md
minor update to providers path
---------
Co-authored-by: starimploie <[email protected]>
Configuring your app to connect to local emulators is easily done by using dependency injection tokens provided by the library. However, there are slighty changes between 6.0.0 and 6.1.0 in the way it was done.
@@ -68,6 +83,17 @@ Configuring your app to connect to local emulators is easily done by using depen
68
83
69
84
Each module (database, firestore, auth, function) provides `USE_EMULATOR` token to configure the emulator `host` and `port` by passing a tuple of `[string, number]` values, which are set by default to `localhost` and the asigned port from your `firebase.json` file.
70
85
86
+
Update your `environment.ts` file:
87
+
88
+
```ts
89
+
exportconst environment = {
90
+
production: false,
91
+
useEmulators: true,
92
+
...
93
+
}
94
+
95
+
```
96
+
71
97
Import these tokens at your `app.module.ts` as follow:
72
98
73
99
```ts
@@ -80,7 +106,7 @@ import { USE_EMULATOR as USE_FUNCTIONS_EMULATOR } from '@angular/fire/compat/fun
0 commit comments