mat-preview-media
    TypeScript icon, indicating that this package has built-in type declarations

    0.1.6 • Public • Published

    MAT PREVIEW MEDIA

    This project made by ZELLKON.


    Github

    Demo

    NPM Package

    Installation

    npm i mat-preview-media

    How to use

    Implement

    Import MatPreviewMediaModule into your module

    import { MatPreviewMediaService } from 'mat-preview-media';
    

    Add Module

    @NgModule({
      imports: [
        ...
        MatPreviewMediaModule
      ],
      declarations: [	
        AppComponent,
       ],
      providers: [],
      bootstrap: [AppComponent]
    })
    export class AppModule { }
    

    Use library in your component

    <img src="url" (click)= "preview(url)" >
    private previewService: MatPreviewMediaService
    preview(url): void {
        this.previewService.openPreviewMedia(url);
    }

    Install

    npm i mat-preview-media

    DownloadsWeekly Downloads

    2

    Version

    0.1.6

    License

    MIT

    Unpacked Size

    60.6 kB

    Total Files

    16

    Last publish

    Collaborators

    • zellkon