@@ -82,7 +82,7 @@ This service automatically keeps local objects in sync with any changes made to
8282to the remote data** . All such changes will have to be performed by updating the object directly and
8383then calling ` $save() ` on the object, or by utilizing ` $bindTo() ` (see more below).
8484
85- ``` js
85+ ``` js
8686app .controller (" MyCtrl" , [" $scope" , " $firebaseObject" ,
8787 function ($scope , $firebaseObject ) {
8888 var ref = firebase .database ().ref ();
@@ -131,7 +131,7 @@ update the server's value.
131131Note that any time other keys exist, this one will be ignored. To change an object to
132132a primitive value, delete the other keys and add this key to the object. As a shortcut, we can use:
133133
134- ``` text
134+ ``` js
135135var 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
790790returns a promise that is resolved when the password has been successfully changed on the Firebase
791791authentication 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() {
803803Changes the email of the currently logged in user. This function returns
804804a 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