Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit aa2456d

Browse files
authored
fix formatting of README.md
1 parent 8d4fd1a commit aa2456d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ the `event:auth-forbidden` message is broadcast from $rootScope.
5151

5252
Sometimes you might not want the interceptor to intercept a request even if one returns 401 or 403. In a case like this you can add `ignoreAuthModule: true` to the request config. A common use case for this would be, for example, a login request which returns 401 if the login credentials are invalid.
5353

54-
###Typical use case:
54+
### Typical use case:
5555

5656
* somewhere (some service or controller) the: `$http(...).then(function(response) { do-something-with-response })` is invoked,
5757
* the response of that requests is a **HTTP 401**,
@@ -63,9 +63,9 @@ Sometimes you might not want the interceptor to intercept a request even if one
6363
the `function(response) {do-something-with-response}` will fire,
6464
* your application will continue as nothing had happened.
6565

66-
###Advanced use case:
66+
### Advanced use case:
6767

68-
####Sending data to listeners:
68+
#### Sending data to listeners:
6969
You can supply additional data to observers across your application who are listening for `event:auth-loginConfirmed` and `event:auth-loginCancelled`:
7070

7171
$scope.$on('event:auth-loginConfirmed', function(event, data){
@@ -80,7 +80,7 @@ You can supply additional data to observers across your application who are list
8080

8181
Use the `authService.loginConfirmed([data])` and `authService.loginCancelled([data])` methods to emit data with your login and logout events.
8282

83-
####Updating [$http(config)](https://docs.angularjs.org/api/ng/service/$http):
83+
#### Updating [$http(config)](https://docs.angularjs.org/api/ng/service/$http):
8484
Successful login means that the previous request are ready to be fired again, however now that login has occurred certain aspects of the previous requests might need to be modified on the fly. This is particularly important in a token based authentication scheme where an authorization token should be added to the header.
8585

8686
The `loginConfirmed` method supports the injection of an Updater function that will apply changes to the http config object.

0 commit comments

Comments
 (0)