Coder Social home page Coder Social logo

ajaymarathe / ng-bootstrap-spinner Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 0.0 1.24 MB

๐Ÿบ Hi there, Bootstrap Spinners for Angular lovers <3, Thanks...

License: MIT License

JavaScript 7.64% TypeScript 22.59% HTML 69.56% CSS 0.21%
ng-bootstrap-spinner bootstrap-spinner angular-bootstrap-spinner ng-spinners spinner

ng-bootstrap-spinner's Introduction

ng-bootstrap-spinner

๐Ÿบ Hi there, Ng Bootstrap Spinner for Angular Lovers <3, Thanks...

NPM NPM JavaScript Style Guide

Installation

Using NPM:

npm i ng-bootstrap-spinner

npm i bootstrap

In you angular.json import bootstrap css

"styles": [
    // "src/styles.scss",
    "./node_modules/bootstrap/dist/css/bootstrap.min.css"
],

Or

In your styles.scss file import bootstrap css

/* You can add global styles to this file, and also import other style files */
@import "bootstrap/dist/css/bootstrap.min.css";

Usage

Import direct in your app.module.ts file:

import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';

//import NgSpinnerModule from ng-bootstrap-spinner
import { NgSpinnerModule } from 'ng-bootstrap-spinner';

@NgModule({
  declarations: [
  ],
  imports: [
    BrowserModule,
    //import your NgSpinnerModule here
    NgSpinnerModule
  ],
  providers: []
})
export class AppModule { }

Then use wherever you want !! Goodluck:

   <ng-spinner size="5" type="border" color="warning"></ng-spinner>

Note

  • size: Size size in rem
  • color: You can give any bootstrap color - primary, secondary, danger etc...
  • type: Add spinner type - grow or border

Author

Ajay Marathe

Copyright and License

Copyright 2019 Ajay Marathe. Code released under the MIT license.

ng-bootstrap-spinner's People

Contributors

ajaymarathe avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.