Skip to content

Latest commit

 

History

History
92 lines (64 loc) · 3.63 KB

README.md

File metadata and controls

92 lines (64 loc) · 3.63 KB

Angular Share Buttons

Capture

npm npm Build Status npm

plunker/stackblitz

Installation

  1. Install the library npm install ngx-sharebuttons --save

  2. Install font-awesome icons npm install font-awesome --save or use a FontAwesome CDN

  3. Choose the module:

    • ShareButtonsModule for <share-buttons></share-buttons>
    • ShareButtonModule for <share-button [button]="buttonName"></share-button>
    • ShareDirectiveModule for <button [shareButton]="buttonName"></button>
import { ShareButtonsModule } from 'ngx-sharebuttons';

@NgModule({
  imports: [
    HttpClientModule, // (Required) for share counts
    HttpClientJsonpModule, // (Optional) For linkedIn & Tumblr counts
    ShareButtonsModule.forRoot()
  ]
})

See usage documentation here

  1. Import the core styles and the theme from the global style src/styles.scss
/** Import core style */
@import "~ngx-sharebuttons/styles/share-buttons";

/** Import a theme */
@import "~ngx-sharebuttons/styles/themes/circles/circles-theme";

Check all themes here

Issues

If you identify any errors in this component, or have an idea for an improvement, please open an issue. I am excited to see what the community thinks of this project, and I would love your input!

Support

npm

Development

  • Fork and clone the repo
  • Install npm dependencies npm install
  • Make your changes
  • Build the package gulp build
  • Submit your PR

This library was generated with generator-ngx-library by @tinesoft You may want to check it out for development info

License

Author

Murhaf Sousli

More plugins from the author