Skip to content

yanzhihong23/angular-qs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

angular-qs

Angular Module for qs. This project is only an angular style wrapper base on qs v6.4.0.

Usage

  • install from bower

    bower install angular-qs --save
  • include module angular-qs

  • import qs service as dependency

      angular.controller('test', ['qs', '$log', function(qs, $log) {
        var obj = qs.parse('a=c');
    
        var str = qs.stringify(obj);
    
        $log.info(str === 'a=c');
      }]);

Parsing Objects

qs.parse(string, [options]);

Stringifying Objects

qs.stringify(object, [options]);

Options

Please refer to qs for the full options description.