Skip to content

neocomplexx/ng-neo-loader

Repository files navigation

ng-neo-loader

Loader gif for angular

Installation

To install this library, run:

$ npm install ng-neo-loader --save

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 { NeoLoaderModule } from 'ng-neo-loader';

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

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


// Import library in child module
import { NeoLoaderModule } from 'ng-neo-loader';

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

    // Specify library as an import
    NeoLoaderModule
  ],
  providers: [],
  bootstrap: [AppComponent]
})
export class AppModule { }

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

<!-- You can now use your library component in *.component.html -->
<app-loader></app-loader>

<h1>
  {{title}}
</h1>

License

MIT © Neocomplexx

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published