{"id":19326327,"url":"https://github.com/thisissoon/angular-post","last_synced_at":"2026-05-16T04:33:10.078Z","repository":{"id":57166326,"uuid":"119400051","full_name":"thisissoon/angular-post","owner":"thisissoon","description":"A simple lightweight library to use Po.st social sharing widgets in Angular apps","archived":false,"fork":false,"pushed_at":"2019-02-06T17:07:53.000Z","size":431,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-02-06T09:48:44.738Z","etag":null,"topics":["angular","component","ngx","ngx-library","ngx-post","ngx-post-widget","ngx-share","ngx-social","ngx-social-share","post","share","social","socialsharing"],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/thisissoon.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-01-29T15:20:38.000Z","updated_at":"2019-02-07T10:39:33.000Z","dependencies_parsed_at":"2022-09-05T04:10:32.560Z","dependency_job_id":null,"html_url":"https://github.com/thisissoon/angular-post","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thisissoon%2Fangular-post","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thisissoon%2Fangular-post/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thisissoon%2Fangular-post/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thisissoon%2Fangular-post/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/thisissoon","download_url":"https://codeload.github.com/thisissoon/angular-post/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240427313,"owners_count":19799471,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["angular","component","ngx","ngx-library","ngx-post","ngx-post-widget","ngx-share","ngx-social","ngx-social-share","post","share","social","socialsharing"],"created_at":"2024-11-10T02:13:05.441Z","updated_at":"2026-05-16T04:33:10.013Z","avatar_url":"https://github.com/thisissoon.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Angular Post\n\n[![Build Status][circle-badge]][circle]\n[![Coverage Status][coveralls-badge]][coveralls]\n[![Commitizen friendly][commitizen-badge]][commitizen]\n[![code style: prettier][prettier-badge]][prettier-badge-url]\n\nA simple lightweight library to use [Po.st][post] social sharing widgets in [Angular][angular] apps\n\nThis is a simple library for [Angular][angular], implemented in the [Angular Package Format v5.0](https://docs.google.com/document/d/1CZC2rcpxffTDfRDs6p1cfbmKNLA6x5O-NtkJglDaBVs/edit#heading=h.k0mh3o8u5hx).\n\n## Install\n\n### via NPM\n\n`npm i @thisissoon/angular-post --save`\n\n### via Yarn\n\n`yarn add @thisissoon/angular-post`\n\n`app.module.ts`\n\n```ts\nimport { PostModule, Post } from '@thisissoon/angular-post';\n\nconst postProviders = [\n  { provide: Post, useFactory: () =\u003e window['postPlatform'] },\n];\n\n@NgModule({\n  imports: [PostModule.forRoot(postProviders)],\n})\nexport class AppModule {}\n```\n\n`index.html`\n\nAdd the Po.st script to your `index.html` file inside your `\u003chead\u003e` tag as in their instructions\n\n```html\n\u003cscript type=\"text/javascript\"\u003e\n  (function() {\n    var s = document.createElement('script');\n    s.type = 'text/javascript';\n    s.async = true;\n    s.src =\n      ('https:' == document.location.protocol ? 'https://s' : 'http://i') +\n      '.po.st/static/v4/post-widget.js#publisherKey=\u003cREPLACE_WITH_ACCOUNT_ID\u003e';\n    var x = document.getElementsByTagName('script')[0];\n    x.parentNode.insertBefore(s, x);\n  })();\n\u003c/script\u003e\n```\n\n## Example\n\nA full working example can be found in the [src/app](https://github.com/thisissoon/angular-post/tree/master/src/app) folder.\n\n### `app.component.html`\n\n```html\n\u003csn-post\n  [widgetId]=\"'REPLACE_WITH_WIDGET_ID'\"\n  [url]=\"'https://foo.com'\"\n  [title]=\"'My Title'\"\n  [options]=\"{\n    buttons: [\n      { id: 'twitter' },\n      { id: 'linkedin' },\n      { id: 'facebook' }\n    ],\n    label: false,\n    radius: 'square',\n    size: 48,\n    counter: false,\n    layout: 'horizontal',\n    jumbo: false,\n    padding: false,\n    view: 'auto',\n    shareNewWindow: true\n  }\"\n\u003e\n\u003c/sn-post\u003e\n```\n\n## Options\n\n- `widgetId`:(string): can be found in post widget settings\n- `url`(string): URL to share\n- `title`(string): title of post to share\n- `options`(object): options to pass on widget located [here][post-options]\n\n## Development server\n\nRun `ng serve` for a dev server. Navigate to `http://localhost:4200/`. The app will automatically reload if you change any of the source files.\n\n## Code scaffolding\n\nRun `ng generate component component-name` to generate a new component. You can also use `ng generate directive|pipe|service|class|guard|interface|enum|module`.\n\n## Build\n\nRun `ng build` to build the project. The build artifacts will be stored in the `dist/` directory. Use the `-prod` flag for a production build.\n\n## Running unit tests\n\nRun `ng test` to execute the unit tests via [Karma][karma].\n\n## Running end-to-end tests\n\nRun `ng e2e` to execute the end-to-end tests via [Protractor][protractor].\n\n## Making Commits\n\nThis repo uses [Commitizen CLI][commitizen] and [Conventional Changelog][conventional-changelog] to create commits and generate changelogs. Instead of running `git commit` run `git cz` and follow the prompts. Changelogs will then be generated when creating new releases by running `npm run release`.\n\n## Making Releases\n\nRun `npm run release` to create a new release. This will use [Standard Version][standard-version] to create a new release. [Standard Version][standard-version] will generate / update the changelog based on commits generated using [Commitizen CLI][commitizen], update the version number following semantic versioning rules and then commit and tag the commit for the release. Simply run `git push --follow-tags origin master`.\n\n## Further help\n\nTo get more help on the Angular CLI use `ng help` or go check out the [Angular CLI README][angular-cli-readme].\n\n[circle]: https://circleci.com/gh/thisissoon/angular-post.svg?style=shield\n[circle-badge]: https://circleci.com/gh/thisissoon/angular-post\n[coveralls]: https://coveralls.io/github/thisissoon/angular-post?branch=master\n[coveralls-badge]: https://coveralls.io/repos/github/thisissoon/angular-post/badge.svg?branch=master\n[prettier-badge]: https://img.shields.io/badge/code_style-prettier-ff69b4.svg?style=shield\n[prettier-badge-url]: https://github.com/prettier/prettier\n[post]: https://www.po.st/\n[post-options]: https://post.zendesk.com/hc/en-us/articles/208458026-v4-Global-Configuration-window-pwidget-config-\n[angular]: https://angular.io/\n[commitizen]: http://commitizen.github.io/cz-cli/\n[commitizen-badge]: https://img.shields.io/badge/commitizen-friendly-brightgreen.svg\n[conventional-changelog]: https://github.com/conventional-changelog/conventional-changelog\n[standard-version]: https://github.com/conventional-changelog/standard-version\n[karma]: https://karma-runner.github.io\n[protractor]: http://www.protractortest.org/\n[angular-cli]: https://github.com/angular/angular-cli\n[angular-cli-readme]: https://github.com/angular/angular-cli/blob/master/README.md\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthisissoon%2Fangular-post","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthisissoon%2Fangular-post","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthisissoon%2Fangular-post/lists"}