Skip to content
This repository was archived by the owner on Mar 17, 2025. It is now read-only.

Commit 4bf90a1

Browse files
iRoachieJacob Wenger
authored andcommitted
Added syntax highlighting for missing blocks (#756)
1 parent 1fd6c4a commit 4bf90a1

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

docs/reference.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ This service automatically keeps local objects in sync with any changes made to
8282
to the remote data**. All such changes will have to be performed by updating the object directly and
8383
then calling `$save()` on the object, or by utilizing `$bindTo()` (see more below).
8484

85-
``` js
85+
```js
8686
app.controller("MyCtrl", ["$scope", "$firebaseObject",
8787
function($scope, $firebaseObject) {
8888
var ref = firebase.database().ref();
@@ -131,7 +131,7 @@ update the server's value.
131131
Note that any time other keys exist, this one will be ignored. To change an object to
132132
a primitive value, delete the other keys and add this key to the object. As a shortcut, we can use:
133133

134-
```text
134+
```js
135135
var obj = $firebaseObject(ref); // an object with data keys
136136
$firebaseUtils.updateRec(obj, newPrimitiveValue); // updateRec will delete the other keys for us
137137
```
@@ -790,7 +790,7 @@ Changes the password of the currently logged in user. This function
790790
returns a promise that is resolved when the password has been successfully changed on the Firebase
791791
authentication servers.
792792

793-
```text
793+
```js
794794
$scope.authObj.$updatePassword("newPassword").then(function() {
795795
console.log("Password changed successfully!");
796796
}).catch(function(error) {
@@ -803,7 +803,7 @@ $scope.authObj.$updatePassword("newPassword").then(function() {
803803
Changes the email of the currently logged in user. This function returns
804804
a promise that is resolved when the email has been successfully changed on the Firebase Authentication servers.
805805

806-
```text
806+
```js
807807
$scope.authObj.$updateEmail("[email protected]")
808808
.then(function() {
809809
console.log("Email changed successfully!");

0 commit comments

Comments
 (0)