https://github.com/ekkolon/ngx-gist
Embedding GitHub Gists in Angular apps made easy
https://github.com/ekkolon/ngx-gist
angular embed github-gist iframe iframe-embeds typescript
Last synced: 2 months ago
JSON representation
Embedding GitHub Gists in Angular apps made easy
- Host: GitHub
- URL: https://github.com/ekkolon/ngx-gist
- Owner: ekkolon
- License: mit
- Created: 2023-02-01T17:13:56.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-04-11T06:18:10.000Z (about 1 year ago)
- Last Synced: 2025-03-23T21:53:05.438Z (3 months ago)
- Topics: angular, embed, github-gist, iframe, iframe-embeds, typescript
- Language: TypeScript
- Homepage:
- Size: 1.56 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ngx-gist
[![NPM Version][npm-image]][npm-url]
A simple and lightweight library for embedding GitHub Gists in your Angular applications.

## Features
- Embed all files from a GitHub gist
- Embed a single target file
- Auto-sized iframe
- Runs outside NgZone## Requirements
Make sure to have `iframe-resizer` installed. This library is needed for auto-resizing the iframe in which the gist is rendered.
```shell
npm install iframe-resizer
```**Install `ngx-gist`**
```bash
npm install @ekkolon/ngx-gist
```## Usage
```ts
// app.module.tsimport {NgxGistModule} from '@ekkolon/ngx-gist'
export class AppModule {
...
imports: [
...
NgxGistModule
]
}
``````html
...
...
```## Authors
- [@ekkolon](https://www.github.com/ekkolon)
## License
[MIT](https://choosealicense.com/licenses/mit/)
## Acknowledgements
- [iFrame Resizer](https://github.com/davidjbradshaw/iframe-resizer/)
This library is used to adjust the iframe's height automatically.[npm-image]: https://img.shields.io/npm/v/@ekkolon/ngx-gist.svg
[npm-url]: https://npmjs.org/package/@ekkolon/ngx-gist