@flywine93/ngx-imgclicker
v1.0.1
Published
Angular displays the image when clicking on the image.
Downloads
72
Maintainers
Readme
ngx-imgclicker
Installation
npm i @flywine93/ngx-imgclicker -S
npm i panzoom -S
Usage
1.Import module into App Module.
import { NgxImgclickerModule } from '@flywine93/ngx-imgclicker';
@NgModule({
declarations: [
AppComponent,
],
imports: [
BrowserModule,
AppRoutingModule,
CommonModule, // import
NgxImgclickerModule // import
],
providers: [],
bootstrap: [AppComponent]
})
export class AppModule { }
2.demo
<p style="text-align:center;">Test ngx-imgclicker</p>
<img src="https://img95.699pic.com/photo/50046/5562.jpg_wh300.jpg">
<ngx-imgclicker></ngx-imgclicker>