0.0.1 • Published 9 years ago

ngkit.ext-links v0.0.1

Weekly downloads
5
License
ISC
Repository
github
Last release
9 years ago

ngKit external links

Add target="_blank" to all links starting with protocol http: or https: within the ui-ext-links directive.

<div ui-ext-links>
  <a href='#'>Untouched</a>
  <a href='/local'>Untouched</a>
  <a href='http://foo.bar/path'>Externalized</a>
</div>

Usage

Add ui-ext-links directive to your Angular module directly:

var app = angular.module('myApp', []);

require('ngkit.ext-links')(app);

Note: ngKit requires Browserify.

License

ISC / Boris Okunskiy