You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"description": "A simple AngularJS module that allows you to block user interaction on AJAX requests. Blocking is done automatically for each http request and/or manually via an injectable service.",
throwError('Argument sections should either be an explicit array of section names or one of the following string values: "vendor", "vendorAreas" or "areas"');
Copy file name to clipboardExpand all lines: package.json
+4-4Lines changed: 4 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -1,15 +1,15 @@
1
1
{
2
-
"name": "angular-init",
3
-
"version": "0.0.0",
4
-
"description": "AngularJS boilerplate project",
2
+
"name": "angular-block-ui",
3
+
"version": "0.0.1",
4
+
"description": "A simple AngularJS module that allows you to block user interaction on AJAX requests. Blocking is done automatically for each http request and/or manually via an injectable service.",
Copy file name to clipboardExpand all lines: src/app/main/home.tmpl.html
+16-10Lines changed: 16 additions & 10 deletions
Original file line number
Diff line number
Diff line change
@@ -19,13 +19,19 @@ <h2 class="visible-phone">
19
19
20
20
<divclass="span6">
21
21
22
+
<h1>angular-block-ui</h1>
23
+
24
+
<p>A simple AngularJS module that allows you to block user interaction on AJAX requests. Blocking is done automatically for each http request and/or manually via an injectable service.</p>
25
+
22
26
<h4>Dependencies</h4>
23
27
24
28
<p>Besides AngularJS (~1.2.4), none. </p>
25
29
26
30
<h4>Usage</h4>
27
31
28
-
<p>The blockUI module exposes a service by the same name. Access to the service is gained by injecting it into your controller or directive:</p>
32
+
<p>By default the module will block the user interface on each pending request made from the browser. This behavior can be modified in the configuration.</p>
33
+
34
+
<p>It’s also possible to do the blocking manually. The blockUI module exposes a service by the same name. Access to the service is gained by injecting it into your controller or directive:</p>
// A function called from user interface, which performs an async operation.
@@ -109,10 +115,13 @@ <h4>message</h4>
109
115
110
116
<h4>delay</h4>
111
117
112
-
<p>Specifies the amount in milliseconds before the block is visible to the user. By delaying a visible block your application will appear more responsive. The default value is <em>500</em>.</p>
118
+
<p>Specifies the amount in milliseconds before the block is visible to the user. By delaying a visible block your application will appear more responsive. The default value is <em>250</em>.</p>
113
119
114
-
<pre><code>// Change the default delay to 100ms before the blocking is visible
120
+
<pre><code>// Change the default delay to 100ms before the blocking is visible ...
<p>By default the BlockUI module will start a block whenever a <em>$locationChangeStart</em>event is fired. You can set this value to <em>false</em> if you don’t want this behaviour.</p>
145
+
<p>By default the BlockUI module will start a block whenever the Angular <em>$http</em>service has an pending request. If you don’t want this behaviour and want to do all the blocking manually you can change this value to <em>false</em>.</p>
137
146
138
-
<pre><code>// Disable blocking on location change
139
-
blockUIConfigProvider.onLocationChange(false);
147
+
<pre><code>// Disable automatically blocking of the user interface
0 commit comments