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
feat(functions): Allow configuration of Functions Emulator Origin (angular#2017)
* Allow use of Cloud Functions emulator via FUNCTIONS_ORIGIN DI token
* Rearranged DI docs and added emulator origin
* Export FUNCTIONS_REGION as an alternative to FunctionsRegionToken
Copy file name to clipboardExpand all lines: docs/functions/functions.md
+48-23Lines changed: 48 additions & 23 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -26,29 +26,6 @@ import { environment } from '../environments/environment';
26
26
exportclassAppModule {}
27
27
```
28
28
29
-
### Configure the Function region with the FunctionsRegionToken Injection Token
30
-
31
-
Allow configuration of Function region with the `FunctionsRegionToken` Injection Token by adding it to the `providers` section of your `NgModule`. The default is `us-central1`.
Once the `AngularFireFunctionsModule` is registered you can inject the `AngularFireFunctions` service.
@@ -91,3 +68,51 @@ export class AppComponent {
91
68
```
92
69
93
70
Notice that calling `httpsCallable()` does not initiate the request. It creates a function, which when called creates an Observable, subscribe or convert it to a Promise to initiate the request.
71
+
72
+
## Configuration via Dependency Injection
73
+
74
+
### Functions Region
75
+
76
+
Allow configuration of the Function's region by adding `FUNCTIONS_REGION` to the `providers` section of your `NgModule`. The default is `us-central1`.
0 commit comments