MCPcopy Create free account
hub / github.com/angular-app/angular-app / generateParams

Function generateParams

client/src/common/directives/gravatar.js:35–46  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

33 generateParams();
34 });
35 function generateParams() {
36 var options = [];
37 scope.getParams = '';
38 angular.forEach(scope.options, function(value, key) {
39 if ( value ) {
40 options.push(key + '=' + encodeURIComponent(value));
41 }
42 });
43 if ( options.length > 0 ) {
44 scope.getParams = '?' + options.join('&');
45 }
46 }
47 }
48 };
49}])

Callers 1

gravatar.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected