angular2-holderjs
TypeScript icon, indicating that this package has built-in type declarations

0.0.7 • Public • Published

README

angular2-holderjs

This is a holderjs component created for Angular 2.

To use

npm install --save angular2-holderjs

import { HolderJsModule } from 'angular2-holderjs/component'

Add HolderJsModule to NgModule imports in your main module

In your template, add the options you would like for holderjs:

<hjs [holderId]="test-holder" [imgSrc]="holder.js/293x210?text=Test&theme=vine"></hjs>

See https://github.com/imsky/holder for imgSrc options

Example

  • cd examples/webpack
  • run npm install
  • run npm start
  • Example should be running on localhost:8080

Who do I talk to?

Package Sidebar

Install

npm i angular2-holderjs

Weekly Downloads

2

Version

0.0.7

License

MIT

Last publish

Collaborators

  • yakirac