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

Skip to content

Commit 14957d6

Browse files
committed
Add an example to comments
1 parent 01fa78f commit 14957d6

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/angular-http-auth.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,15 @@ angular.module('http-auth-interceptor', [])
3333
/**
3434
* Executes each of the ignore expressions to determine whether the URL
3535
* should be ignored.
36+
*
37+
* Example:
38+
*
39+
* angular.module('mod', ['http-auth-interceptor'])
40+
* .config(function (authServiceProvider) {
41+
* authServiceProvider.addIgnoreUrlExpression(function (response) {
42+
* return response.config.url === "/api/auth";
43+
* });
44+
* });
3645
*/
3746
this.shouldIgnoreUrl = function (response) {
3847
var fn, i, j = ignoreUrlExpressions.length;

0 commit comments

Comments
 (0)