Angular and jsUri must be loaded prior to angular-jsuri.
var module = angular.module('app', ['angular-jsuri']);
module.controller('HomeController', [
'$scope',
'Uri',
function($scope, Uri) {
$scope.uri = new Uri('http://user:pass@www.test.com:81/index.html?q=books#fragment');
$scope.uriParts = {
protocol: uri.protocol(),
userInfo: uri.userInfo(),
host: uri.host(),
port: uri.port(),
path: uri.path(),
query: uri.query(),
anchor: uri.anchor()
}
]);