0.1.0 • Published 8 years ago
ngx-zoom-image v0.1.0
ngx-zoom-image
Installation
To install this library, run:
$ npm install ngx-zoom-image --saveConsuming your library
Once you have published your library to npm, you can import your library in any Angular application by running:
$ npm install ngx-zoom-imageand then from your Angular AppModule:
import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { AppComponent } from './app.component';
// Import your library
import { ZoomImageModule } from 'ngx-zoom-image';
@NgModule({
declarations: [
AppComponent
],
imports: [
BrowserModule,
ZoomImageModule
],
providers: [],
bootstrap: [AppComponent]
})
export class AppModule { }<!-- You can now use your library component in app.component.html -->
<h1>
{{title}}
</h1>
<img zoomImage="zoomImgSrc" imgSrc="imgSrc">Development
To generate all *.js, *.d.ts and *.metadata.json files:
$ npm run buildTo lint all *.ts files:
$ npm run lintLicense
MIT © Davis Yang
0.1.0
8 years ago