Skip to content

duguncom/dugun-query-string

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dugun-query-string

Controls query string and hash easily.

Installation

Install the package using bower:

bower install --save dg-query-string

The include it as a dependency in your project:

angular.module('app', [
    'dugun.queryString'
];

Usage

To make it available in your controllers, just use it as any other service:

angular.module('app').controller('MyController', ['queryString', MyController]);

function MyController(queryString) {
    $scope.filters = queryString.getFilters();
    
    $scope.setFilters = function() {
        queryString.setFilters(angular.copy($scope.filters);
    }
}

About

Controls query string and hash easily

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •