loader.module.ts
TypeScript source for Automatic loading spinners in Angular, 14 lines. Raw file
import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { LoaderComponent } from './loader.component';
import { HttpGetPipe } from './http-get.pipe';
import { LivePipe } from './live.pipe';
// Import this into any module that uses <app-loader>, httpGet or live. The application also needs
// HttpClientModule, once, in its root module
@NgModule({
imports: [CommonModule],
declarations: [LoaderComponent, HttpGetPipe, LivePipe],
exports: [LoaderComponent, HttpGetPipe, LivePipe],
})
export class LoaderModule {}