This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { Injectable } from '@angular/core'; | |
| import { OverlayContainer } from '@angular/cdk/overlay'; | |
| @Injectable({ | |
| providedIn: 'root' | |
| }) | |
| export class DynamicOverlayContainer extends OverlayContainer { | |
| public setContainerElement(containerElement: HTMLElement): void { | |
| this._containerElement = containerElement; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { | |
| Overlay, | |
| OverlayKeyboardDispatcher, | |
| OverlayPositionBuilder, | |
| ScrollStrategyOptions, | |
| OverlayRef | |
| } from '@angular/cdk/overlay'; | |
| import { | |
| ComponentFactoryResolver, | |
| Inject, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { Component, ViewChild, ElementRef } from '@angular/core'; | |
| import { DynamicOverlay } from '../dynamic-overlay'; | |
| import { MatTable } from '@angular/material'; | |
| import { ComponentPortal } from '@angular/cdk/portal'; | |
| import { LoaderComponent } from '../loader/loader.component'; | |
| export interface PeriodicElement { | |
| name: string; | |
| position: number; | |
| weight: number; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| export class LoaderData { | |
| title: string; | |
| loaderType: LoaderType; | |
| } | |
| export type LoaderType = 'Spinner' | 'ProgressBar'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { Component } from '@angular/core'; | |
| import { LoaderData } from './loader.config'; | |
| @Component({ | |
| selector: 'app-loader', | |
| template: ` | |
| <mat-card> | |
| <mat-card-header> | |
| <mat-card-title> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { Directive, ElementRef, OnInit, Input, Injector } from '@angular/core'; | |
| import { OverlayRef } from '@angular/cdk/overlay'; | |
| import { Observable } from 'rxjs'; | |
| import { ComponentPortal, PortalInjector } from '@angular/cdk/portal'; | |
| import { DynamicOverlay } from './dynamic-overlay'; | |
| import { LoaderComponent } from './loader/loader.component'; | |
| import { LoaderData } from './loader/loader.config'; | |
| @Directive({ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { Component } from '@angular/core'; | |
| import { Observable, interval } from 'rxjs'; | |
| import { map } from 'rxjs/operators'; | |
| import { LoaderData } from './loader/loader.config'; | |
| @Component({ | |
| selector: 'app-root', | |
| template: ` | |
| <mat-card> | |
| <mat-card-header> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| // ... | |
| "scripts": { | |
| "build": "tsc -p tsconfig.json", | |
| "build:local": "tsc -p tsconfig.json --watch", | |
| "test": "npm run build && jasmine src/**/*_spec.js" | |
| }, | |
| // ... | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| export function scaffoldSchematics(options: any): Rule { | |
| return (tree: Tree, _context: SchematicContext) => { | |
| return tree; | |
| }; | |
| } |