Skip to content

Commit 8d3ab75

Browse files
jamesdanielsdavideast
authored andcommitted
Adding typescript syntax highlighting
1 parent f6aa61a commit 8d3ab75

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

docs/version-4-upgrade.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ Prior to 4.0, AngularFire2 not take advantage of the Firebase SDK's modularity f
1313

1414
Rather than inject `AngularFire` you should now inject each module independently:
1515

16-
```
16+
```typescript
1717
import { AngularFireDatabase } from 'angularfire2/database';
1818

1919
...
@@ -27,7 +27,7 @@ constructor(db: AngularFireDatabase) {
2727

2828
In 4.0 we've further cut the complexity of the package by auth module down to a [`firebase.User`](https://firebase.google.com/docs/reference/js/firebase.User) observer to simplify the package.
2929

30-
```
30+
```typescript
3131
import { AngularFireAuth } from 'angularfire2/auth';
3232

3333
...
@@ -44,7 +44,7 @@ While convenient, the pre-configure login feature added unneeded complexity into
4444

4545
In 4.0 you can now trigger login using the Firebase SDK:
4646

47-
```
47+
```typescript
4848
login() {
4949
this.afAuth.auth.signInWithPopup(new GoogleAuthProvider());
5050
}
@@ -63,7 +63,7 @@ If you directly use `FirebaseListFactory` or `FirebaseObjectFactory` you will no
6363

6464
Here's an example of what AngularFire2 4.0 looks like:
6565

66-
```
66+
```typescript
6767
import { NgModule, Component } from '@angular/core';
6868
import { Observable } from 'rxjs/Observable';
6969
import { AngularFireModule } from 'angularfire2';

0 commit comments

Comments
 (0)