Skip to content

Instantly share code, notes, and snippets.

@AvocadoVenom
Created October 3, 2019 22:13
Show Gist options
  • Select an option

  • Save AvocadoVenom/4f9385bbc31f3addaa83170079edac87 to your computer and use it in GitHub Desktop.

Select an option

Save AvocadoVenom/4f9385bbc31f3addaa83170079edac87 to your computer and use it in GitHub Desktop.
Overlay Loading Directive > App Module
import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { AppComponent } from './app.component';
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
import { OverlayModule } from '@angular/cdk/overlay';
import { MatCardModule, MatButtonModule, MatProgressBarModule } from '@angular/material';
import { LoaderComponent } from './loader/loader.component';
@NgModule({
declarations: [
AppComponent,
LoaderComponent
],
imports: [
BrowserModule,
BrowserAnimationsModule,
MatCardModule,
MatButtonModule,
MatProgressBarModule,
OverlayModule
],
providers: [],
bootstrap: [AppComponent],
entryComponents: [LoaderComponent]
})
export class AppModule { }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment