angular-linkify
Angular filter, directive, and service to linkify text. As of v0.3.0, angular-linkify works for twitter/github mentions, twitter hashtags, and basic urls.
Install
Install via either bower, npm, CDN (jsDelivr) or downloaded files:
bower install angular-linkify --save
npm install angular-linkify --save
- use CDN file
- download angular-linkify.zip
Include angular-linkify.min.js
in your angular application
<!-- when using bower --> <!-- when using npm --> <!-- when using cdn file --> <!-- when using downloaded files -->
Usage
Inject module into your application
angular;
Use as a AngularJS Directive
<!-- As a directive, no twitter --> <!-- As a directive, with twitter parsing -->
Inject as a AngularJS Service
// Injected into controllerangular;
Build
grunt