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

0.2.1 • 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);
}

Dependents (0)

Package Sidebar

Install

npm i mat-preview-media

Weekly Downloads

3

Version

0.2.1

License

MIT

Unpacked Size

56.4 kB

Total Files

16

Last publish

Collaborators

  • zellkon