0.3.1 • Published 7 years ago

social-share-ng2 v0.3.1

Weekly downloads
4
License
MIT
Repository
github
Last release
7 years ago

install socail-share-ng2 component

 npm i social-share-ng2

include socail-share-ng2 module and style

src/app/app.module.ts

import { SocialShareModule } from 'social-share-ng2';

@NgModule({
  imports: [
    SocialShareModule,
    ...
  ]
})

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:

<link href="../node_modules/social-share-ng2/social-icon/css/social-icon.css" rel="stylesheet">

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:

<social-share>
    <social-label>share</social-label>
    <share-button social='weibo'></share-button>
    <share-button social='qq'></share-button>
    <share-button social='qzone'></share-button>
    <share-button social='douban'></share-button>
    <share-button social='twitter'></share-button>
    <share-button social='facebook'></share-button>
    <share-button social='google-plus'></share-button>
    <share-button social='linkedin'></share-button>
</social-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

0.3.1

7 years ago

0.3.0

7 years ago

0.2.4

8 years ago

0.2.3

8 years ago

0.2.2

8 years ago

0.2.1

8 years ago

0.2.0

8 years ago

0.1.9

8 years ago

0.1.8

8 years ago

0.1.7

8 years ago

0.1.6

8 years ago

0.1.4

8 years ago

0.1.3

8 years ago

0.1.2

8 years ago

0.1.1

8 years ago

0.1.0

8 years ago