An angular module that allows URI.js to be dependency injected
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>
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();
});