Skip to content

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

Notifications You must be signed in to change notification settings

kareemf/angular-uri

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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();
});

About

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

Resources

Stars

Watchers

Forks

Packages

No packages published