Skip to content

Commit 2e3a10c

Browse files
Added preventRouting config parameter
Added preventRouting config parameter to allow users the option to turn off the feature to prevent routing.
1 parent 885ccb3 commit 2e3a10c

File tree

11 files changed

+37
-17
lines changed

11 files changed

+37
-17
lines changed

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -252,3 +252,10 @@ A string containing the default css classes, separated by spaces, that should be
252252
If this needs to be overridden for a certain element; set the desired classes on the element including the `block-ui` class. This way the directive will not apply the configured classes to the element.
253253

254254
blockUIConfig.cssClass = 'block-ui my-custom-class'; // Apply these classes to al block-ui elements
255+
256+
#### preventRouting
257+
By default, routing will be prevented while the main block-ui instance is blocking.
258+
259+
If your app has programatic routing within a controller, it is suggested that you disable preventRouting because routing inside a controller is prevented as well.
260+
261+
blockUIConfig.preventRouting = false; // Disable preventRouting (enabled by default)

dist/README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -252,3 +252,10 @@ A string containing the default css classes, separated by spaces, that should be
252252
If this needs to be overridden for a certain element; set the desired classes on the element including the `block-ui` class. This way the directive will not apply the configured classes to the element.
253253

254254
blockUIConfig.cssClass = 'block-ui my-custom-class'; // Apply these classes to al block-ui elements
255+
256+
#### preventRouting
257+
By default, routing will be prevented while the main block-ui instance is blocking.
258+
259+
If your app has programatic routing within a controller, it is suggested that you disable preventRouting because routing inside a controller is prevented as well.
260+
261+
blockUIConfig.preventRouting = false; // Disable preventRouting (enabled by default)

dist/angular-block-ui.css

100755100644
File mode changed.

dist/angular-block-ui.css.map

100755100644
File mode changed.

dist/angular-block-ui.js

100755100644
Lines changed: 10 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/angular-block-ui.js.map

100755100644
Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/angular-block-ui.min.css

100755100644
File mode changed.

dist/angular-block-ui.min.js

100755100644
Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)