
Research
/Security News
Toptal’s GitHub Organization Hijacked: 10 Malicious Packages Published
Threat actors hijacked Toptal’s GitHub org, publishing npm packages with malicious payloads that steal tokens and attempt to wipe victim systems.
ngx-bootstrap-spinner
Advanced tools
A library with bootstrap spinners for or Angular 4/5/6/7/8/9/10.(https://sonce.github.io/ngx-bootstrap-spinner/). It is change by npx-spnner. (https://github.com/Napster2210/ngx-spinner/).Thanks!
A library with bootstrap spinners for or Angular 4/5/6/7/8/9/10.(https://sonce.github.io/ngx-bootstrap-spinner/).
It is change by npx-spnner. (https://github.com/Napster2210/ngx-spinner/).Thanks!
ng add
command to add ngx-bootstrap-spinner
to the projectUse appropriate version based on your Angular version.
Angular 4 | Angular 5 | Angular 6/7 | Angular 8 | Angular 9 | Angular 10 |
---|---|---|---|---|---|
>= v1.2.0 | >= v2.0.0 | v7.2.0 | v8.1.0 | >=v9.0.1 | >=v10.0.1 |
![]() Chrome | ![]() Firefox | ![]() IE / Edge | ![]() Safari | ![]() Opera |
---|---|---|---|---|
Latest ✔ | Latest ✔ | IE11, Edge ✔ | Latest ✔ | Latest ✔ |
img
tagshow()/hide()
methods return promisez-index
hide/show
the spinnerngx-bootstrap-spinner
is available via npm and yarn
Using npm:
$ npm install ngx-bootstrap-spinner --save
Using yarn:
$ yarn add ngx-bootstrap-spinner
Using angular-cli:
$ ng add ngx-bootstrap-spinner
Import NgxSpinnerModule
in in the root module(AppModule
):
import { NgModule, CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';
// Import library module
import { NgxSpinnerModule } from "ngx-bootstrap-spinner";
@NgModule({
imports: [
// ...
NgxSpinnerModule
],
schemas: [CUSTOM_ELEMENTS_SCHEMA],
})
export class AppModule {}
Add NgxSpinnerService
service wherever you want to use the ngx-bootstrap-spinner
.
import { NgxSpinnerService } from "ngx-bootstrap-spinner";
class AppComponent implements OnInit {
constructor(private spinner: NgxSpinnerService) {}
ngOnInit() {
/** spinner starts on init */
this.spinner.show();
setTimeout(() => {
/** spinner ends after 5 seconds */
this.spinner.hide();
}, 5000);
}
}
Now use in your template
<ngx-bootstrap-spinner></ngx-bootstrap-spinner>
See Demo
NgxSpinnerService.show()
Shows the spinnerNgxSpinnerService.hide()
Hides the spinnerrgba(51,51,51,0.8)
where aplha
value(0.8) is opacity of backdropsmall
, default
.
To set size of spinner, default default
#fff
border
true
or false
To enable/disable fullscreen mode(overlay), default true
primary
99999
null
<ngx-bootstrap-spinner
bdColor="rgba(51,51,51,0.8)"
size="default"
color="#fff"
type="border"
>
</ngx-bootstrap-spinner>
<ngx-bootstrap-spinner
bdColor="rgba(0, 0, 0, 1)">
loaderTemplate="<img src='https://media.giphy.com/media/o8igknyuKs6aY/giphy.gif' />"
</ngx-bootstrap-spinner>
HTML
code as loading text now, instead of input parameter(loadingText
). Check above code for reference.ngx-bootstrap-spinner
instance, just add name
attribute with ngx-bootstrap-spinner
component. But in this case, you've to pass that particular name of a spinner in show/hide
method. Check Demothis.spinner.show("mySpinner", {
type: "border",
size: "default",
bdColor: "rgba(0, 0, 0, 1)",
color: "white",
loaderTemplate: "<img src='https://media.giphy.com/media/o8igknyuKs6aY/giphy.gif' />"
});
CUSTOM_ELEMENTS_SCHEMA
as your schema in your main module.show()
methods in a single component or single function one after another then wrap the show()
method within setTimeout()
method to avoid any rendering issue.fullScreen: false
), in that case your parent element of spinner must have position: relative;
style property.ngx-bootstrap-spinner will be maintained under the Semantic Versioning guidelines. Releases will be numbered with the following format:
<major>.<minor>.<patch>
For more information on SemVer, please visit http://semver.org.
Inspired by Load Awesome by Daniel Cardoso.
ngx-bootstrap-spinner is MIT licensed.
FAQs
A library with bootstrap spinners for or Angular 4/5/6/7/8/9/10.(https://sonce.github.io/ngx-bootstrap-spinner/). It is change by npx-spnner. (https://github.com/Napster2210/ngx-spinner/).Thanks!
The npm package ngx-bootstrap-spinner receives a total of 74 weekly downloads. As such, ngx-bootstrap-spinner popularity was classified as not popular.
We found that ngx-bootstrap-spinner demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
/Security News
Threat actors hijacked Toptal’s GitHub org, publishing npm packages with malicious payloads that steal tokens and attempt to wipe victim systems.
Research
/Security News
Socket researchers investigate 4 malicious npm and PyPI packages with 56,000+ downloads that install surveillance malware.
Security News
The ongoing npm phishing campaign escalates as attackers hijack the popular 'is' package, embedding malware in multiple versions.