2.3.1 • Published 7 years ago

angularloader v2.3.1

Weekly downloads
3
License
MIT
Repository
github
Last release
7 years ago

angularloader

Installation

To install this library globally, run:

$ npm install angularloader --save -g

To install this library locally, run:

$ npm install angularloader

Add below line to your system.config.js

 'angularloader':'npm:angularloader/angularloader.umd.js',

Consuming our library

and then from your Angular AppModule:

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

import { AppComponent } from './app.component';

// Import library
import { LoaderModule } from 'angularloader';

@NgModule({
  declarations: [
    AppComponent
  ],
  imports: [
    BrowserModule,

    // Specify library as an import
    LoaderModule.forRoot()
  ],
  providers: [],
  bootstrap: [AppComponent]
})
export class AppModule { }

Once our library is imported, you can use component in your Angular application:

<!-- You can now use library component in app.component.html -->
<h1>
  {{title}}
</h1>
<aj-loader [isLoaderVisible]='isshowloader'></aj-loader>

Now you can use isshowloader variable in app.component.ts. If you want to display loader then set isshowloader variable to true otherwise false.

class AppComponent {
  isshowloader: boolean = false;
}

Development

To generate all *.js, *.d.ts and *.metadata.json files:

$ npm run build

To lint all *.ts files:

$ npm run lint

License

MIT © Ankit Bhanderi

2.3.1

7 years ago

2.3.0

7 years ago

2.0.4

7 years ago

2.0.2

7 years ago

2.0.1

7 years ago

1.0.0

7 years ago

2.0.0

7 years ago