Skip to content
This repository was archived by the owner on Apr 4, 2023. It is now read-only.

Commit 2fd43fa

Browse files
README - Angular - Correction #787
1 parent ac6e0d3 commit 2fd43fa

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ firebase.init({
104104

105105
#### TypeScript
106106
```js
107-
import firebase = require("nativescript-plugin-firebase");
107+
const firebase = require("nativescript-plugin-firebase");
108108

109109
firebase.init({
110110
// Optionally pass in properties for database, authentication and cloud messaging,
@@ -122,7 +122,7 @@ firebase.init({
122122
#### Angular
123123
Because of the specifics of the angular bootstrap it is best to initalize firebase once the angular application is running. For example your main compoment's `ngOnInit` method:
124124
```js
125-
import firebase = require("nativescript-plugin-firebase");
125+
const firebase = require("nativescript-plugin-firebase");
126126

127127
@Component({
128128
// ...

0 commit comments

Comments
 (0)