Skip to content

Commit 74bce7e

Browse files
committed
(docs): Add missing $ in $stateChangeError
1 parent 9832be5 commit 74bce7e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.docs/angular-meteor/client/views/api/api.auth.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ <h3><p><code><span class="pln">requireUser();</span></code></p></h3>
149149
});
150150

151151
app.run(["$rootScope", "$location", function($rootScope, $location) {
152-
$rootScope.$on("stateChangeError", function(event, next, previous, error) {
152+
$rootScope.$on("$stateChangeError", function(event, next, previous, error) {
153153
// We can catch the error thrown when the $meteor.requireUser() promise is rejected
154154
// and redirect the user back to the login page
155155
if (error === "AUTH_REQUIRED") {

.docs/angular-meteor/client/views/steps/tutorial.step_08.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ <h1>
232232
__`client/routes.js`:__
233233

234234
angular.module("socially").run(["$rootScope", "$location", function($rootScope, $location) {
235-
$rootScope.$on("stateChangeError", function(event, next, previous, error) {
235+
$rootScope.$on("$stateChangeError", function(event, next, previous, error) {
236236
// We can catch the error thrown when the $requireUser promise is rejected
237237
// and redirect the user back to the main page
238238
if (error === "AUTH_REQUIRED") {

0 commit comments

Comments
 (0)