Skip to content

Commit

Permalink
Update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
MurhafSousli committed Mar 22, 2018
1 parent 6c739d6 commit cd8453c
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 11 deletions.
10 changes: 6 additions & 4 deletions lib/button/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ Share button component is built on top of `ShareModule` so you need to install b
To use the default icons, install `font-awesome` package.

```bash
$ npm install --save @ngx-share/core @ngx-share/button font-awesome
$ npm install --save @ngx-share/core @ngx-share/button @fortawesome/fontawesome-free-webfonts
```

Import `ShareButtonModule` in your module
Expand All @@ -31,7 +31,7 @@ import { ShareButtonModule } from '@ngx-share/button';
@NgModule({
imports: [
HttpClientModule, // (Required) for share counts
HttpClientJsonpModule, // (Optional) For linkedIn & Tumblr counts
HttpClientJsonpModule, // (Optional) For Tumblr counts
ShareButtonModule.forRoot()
]
})
Expand All @@ -40,7 +40,9 @@ import { ShareButtonModule } from '@ngx-share/button';
Import core styles and theme from the global style `src/styles.scss`

```css
@import '~font-awesome/css/font-awesome.min.css';
@import "~@fortawesome/fontawesome-free-webfonts/css/fa-brands.css";
@import "~@fortawesome/fontawesome-free-webfonts/css/fa-solid.css";
@import "~@fortawesome/fontawesome-free-webfonts/css/fontawesome.css";
@import "~@ngx-share/button/styles/share-buttons";
@import "~@ngx-share/button/styles/themes/default/default-theme";
```
Expand Down Expand Up @@ -100,7 +102,7 @@ If you identify any errors in this component, or have an idea for an improvement

## More plugins from the author

- [ng-gallery](https://github.com/MurhafSousli/ng-gallery)
- [ngx-gallery](https://github.com/MurhafSousli/ngx-gallery)
- [ngx-progressbar](https://github.com/MurhafSousli/ngx-progressbar)
- [ngx-bar-rating](https://github.com/MurhafSousli/ngx-bar-rating)
- [ngx-disqus](https://github.com/MurhafSousli/ngx-disqus)
Expand Down
10 changes: 6 additions & 4 deletions lib/buttons/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ Share buttons component is built on top of `ShareModule` and `ShareButtonModule`
To use the default icons, install `font-awesome` package.

```bash
$ npm install --save @ngx-share/core @ngx-share/button @ngx-share/buttons font-awesome
$ npm install --save @ngx-share/core @ngx-share/button @ngx-share/buttons @fortawesome/fontawesome-free-webfonts
```

Import `ShareButtonModule` in your module
Expand All @@ -31,7 +31,7 @@ import { ShareButtonModule } from '@ngx-share/button';
@NgModule({
imports: [
HttpClientModule, // (Required) for share counts
HttpClientJsonpModule, // (Optional) For linkedIn & Tumblr counts
HttpClientJsonpModule, // (Optional) For Tumblr counts
ShareButtonModule.forRoot()
]
})
Expand All @@ -40,7 +40,9 @@ import { ShareButtonModule } from '@ngx-share/button';
Import core styles and theme from the global style `src/styles.scss`

```css
@import '~font-awesome/css/font-awesome.min.css';
@import "~@fortawesome/fontawesome-free-webfonts/css/fa-brands.css";
@import "~@fortawesome/fontawesome-free-webfonts/css/fa-solid.css";
@import "~@fortawesome/fontawesome-free-webfonts/css/fontawesome.css";
@import "~@ngx-share/button/styles/share-buttons";
@import "~@ngx-share/button/styles/themes/default/default-theme";
```
Expand Down Expand Up @@ -96,7 +98,7 @@ If you identify any errors in this component, or have an idea for an improvement

## More plugins from the author

- [ng-gallery](https://github.com/MurhafSousli/ng-gallery)
- [ngx-gallery](https://github.com/MurhafSousli/ngx-gallery)
- [ngx-progressbar](https://github.com/MurhafSousli/ngx-progressbar)
- [ngx-bar-rating](https://github.com/MurhafSousli/ngx-bar-rating)
- [ngx-disqus](https://github.com/MurhafSousli/ngx-disqus)
Expand Down
14 changes: 11 additions & 3 deletions lib/core/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ Convert any element to a share button using `[shareButton]` directive.
Install with npm

```bash
$ npm install --save @ngx-share/core
$ npm install --save @ngx-share/core
```

Import `ShareModule` in your module
Expand All @@ -30,12 +30,20 @@ import { ShareModule } from '@ngx-share/core';
@NgModule({
imports: [
HttpClientModule, // (Required) for share counts
HttpClientJsonpModule, // (Optional) For linkedIn & Tumblr counts
HttpClientJsonpModule, // (Optional) For Tumblr counts
ShareModule.forRoot()
]
})
```

Import FontAwesome if you want to use the icons

```scss
@import "~@fortawesome/fontawesome-free-webfonts/css/fa-brands.css";
@import "~@fortawesome/fontawesome-free-webfonts/css/fa-solid.css";
@import "~@fortawesome/fontawesome-free-webfonts/css/fontawesome.css";
```

In your template

```html
Expand Down Expand Up @@ -109,7 +117,7 @@ If you identify any errors in this component, or have an idea for an improvement

## More plugins from the author

- [ng-gallery](https://github.com/MurhafSousli/ng-gallery)
- [ngx-gallery](https://github.com/MurhafSousli/ngx-gallery)
- [ngx-progressbar](https://github.com/MurhafSousli/ngx-progressbar)
- [ngx-bar-rating](https://github.com/MurhafSousli/ngx-bar-rating)
- [ngx-disqus](https://github.com/MurhafSousli/ngx-disqus)
Expand Down

0 comments on commit cd8453c

Please sign in to comment.