ngx-domarrow
v0.7.2
Published
This library brings [domarrow](https://github.com/schaumb/domarrow.js) to Angular 2+.
Downloads
19
Readme
ngx-domarrow
This library brings domarrow to Angular 2+.
See demo.
Install
npm install ngx-domarrow
Usage
- Add declaration to your app.module.ts
import { NgxDomarrowModule } from 'ngx-domarrow';
@NgModule({
imports: [
....,
NgxDomarrowModule
],
...
})
- Add it to your template.
<ngx-domarrow from="#image-1" to="#image-2" [tail]="true" [onlyVisible]="true"
color="red" text="Hello world"></ngx-domarrow>
<ngx-domarrow from="#image-1" to="#image-2" [head]="true" [tail]="true"
color="#0000FF"></ngx-domarrow>
<ngx-domarrow from="#single" to=".multiple" [tail]="true"
color="#0000FF"></ngx-domarrow>
Full list of properties => ./lib/src/lib/ngx-domarrow.component.ts
Contribute
npm install
npm run build
npm run test
npm run lint
Publish
Update package version into lib/package.json
npm run build
cd dist/ngx-domarrow/
npm publish
Credits
👏 Thanks to Bela Schaum for building domarrow.