Skip to content

unlight/angular1-query-string

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Angular Query String

An angular service that easily allows you to extract a key/value pair from the URL query string.

Install

Clone the repository and include directly into your project. You can also use bower and install as a dependency:

Add the dependency in your Angular's project dependency arguments:

var app = angular.module('MyApp', [
    'angular-query-string'
]);

Usage

Dependency Injection Name: urlQueryString

urlQueryString.<KEY>;

// http://cnn.com
urlQueryString.foo; // `undefined`

// http://cnn.com?
urlQueryString.foo; // `undefined`

// http://cnn.com?foo
urlQueryString.foo; // `null`

// http://cnn.com?foo=bar
urlQueryString.foo; // `'bar'`

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 56.2%
  • Batchfile 43.8%