Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dzonatan/angular2-linky
Linky pipe for angular
https://github.com/dzonatan/angular2-linky
angular autolinker linky ng pipe
Last synced: 4 months ago
JSON representation
Linky pipe for angular
- Host: GitHub
- URL: https://github.com/dzonatan/angular2-linky
- Owner: dzonatan
- License: mit
- Created: 2016-03-09T14:19:56.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2021-11-22T09:44:28.000Z (about 3 years ago)
- Last Synced: 2024-05-22T04:31:01.033Z (7 months ago)
- Topics: angular, autolinker, linky, ng, pipe
- Language: TypeScript
- Homepage:
- Size: 771 KB
- Stars: 41
- Watchers: 2
- Forks: 13
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-angular-components - angular2-linky - Linky pipe for angular2. (Uncategorized / Uncategorized)
- awesome-angular-components - angular2-linky - Linky pipe for angular2. (Uncategorized / Uncategorized)
README
# ngx-linky
![CI](https://github.com/dzonatan/ngx-linky/workflows/CI/badge.svg)
[![npm version](https://badge.fury.io/js/ngx-linky.svg)](https://badge.fury.io/js/ngx-linky)**Angular** pipe to find links in text input and turn them into html links. It was called the same "linky" in **ngSanitize** module of **AngularJs (first)**. Since **Angular** does not have such pipe built in therefore this repo was created.
This is just a wrapper for [Autolinker.js](https://github.com/gregjacobs/Autolinker.js) so all issues and feature requests related to **autolinker** should go to their [issues](https://github.com/gregjacobs/Autolinker.js/issues)!
## Installation
`npm install --save ngx-linky autolinker`
Import `LinkyModule` or manually declare `LinkyPipe` in your app module.
```ts
import { LinkyModule } from 'ngx-linky';@NgModule({
imports: [
LinkyModule
]
})
class YourAppModule {}
```## Usage
Use **linky** pipe with **[innerHTML]** (or outerHTML, depends on you) binding to get HTML correctly rendered:
``
You can pass any [autolinker option](https://github.com/gregjacobs/Autolinker.js#options) as a second pipe argument. For ex.:
``
## License
MIT