0.2.0 • Published 8 years ago

angular-uri v0.2.0

Weekly downloads
48
License
MIT
Repository
github
Last release
8 years ago

angular-uri

An angular module that allows URI.js to be dependency injected

Installation

Download via bower

bower install angular-uri

Include URI.js

<script type="text/javascript" src="bower_components/uri.js/src/URI.js"></script>

Include angular-uri after angular.js and URI.js

<script type="text/javascript" src="bower_components/angular-uri/angular-uri.js"></script>

Usage

Load the module

angular.module('app', ['angular-uri']);

Inject the URI dependency

.controller('appController', function($scope, URI) {
	$scope.url = URI("example.com").addSearch({a:'b'}).toString();
});