install socail-share-ng2 component
npm i social-share-ng2
include socail-share-ng2 module and style
src/app/app.module.ts
;
social-share-ng2 use font icon, we also need to load the icon font
in index.html
or import it to style.css
load in index.html:
or import by style.css
@improt '../node_modules/social-share-ng2/social-icon/css/social-icon.css'
use it
use socail-share-ng2 like this:
share
socail-share-ng2 has label and button, you can display what label your like and pick witch socail service you want.
custom config
you can custom config the share context or button color.
todo
demo
todo
Todo list
- test all
- color config
- documents
- what's it?
- todo
- example
Tip
Remember link style ./social-icon/css/socail-icon.css