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
then, use `ng2-loading` directive on element which you want spinner:
57
+
then, use the `ng2-loading` directive on the element you want to have a spinner on:
58
58
```html
59
59
<divclass="card"
60
60
[ng2-loading]="showSpinner">
61
61
...
62
62
</div>
63
63
```
64
-
directive expects a boolean for showing and removing Loading spinner:
64
+
the directive expects a boolean for showing and removing Loading spinner:
65
65
```typescript
66
66
@Component({
67
67
selector : 'app.component',
68
68
templateUrl: './app.component.html',
69
69
styleUrls : [ './app.component.css' ]
70
70
})
71
71
exportclassAppComponent {
72
-
showSpinner:boolean=false;
72
+
showSpinner:boolean=true;
73
73
74
74
75
75
constructor() {
76
-
setTimeOut(() => {
76
+
setTimeout(() => {
77
77
this.showSpinner=false;
78
78
}, 1500);
79
79
}
@@ -99,6 +99,7 @@ template | TemplateRef | Optional | If provided, the custom template will be sho
99
99
<aname="Configurable options" />
100
100
101
101
#### Configurable options
102
+
Config options can be set globally using the forRoot module import statement as well as being passed into each loader instance.Options passed to the instance of loader will override each global options.
102
103
103
104
Option | Required | type | Default value | Description | Examples |
104
105
--- | --- | --- | --- | --- | ---- |
@@ -161,6 +162,18 @@ xl |
161
162
<aname="Example 1 - with custom configuration options" />
162
163
163
164
#### Example 1 - with custom configuration options
0 commit comments