starter.dev-github-showcases icon indicating copy to clipboard operation
starter.dev-github-showcases copied to clipboard

[Angular - NgRx - SCSS] Create tagged template function for services to encode URI pieces

Open lindakatcodes opened this issue 2 years ago • 0 comments

In all the service calls to the GitHub API, we're currently encoding multiple strings pieces and then constructing the URL to send.

We'd like to create a tagged template function that can be used to construct the URLs, and make the services a bit cleaner. The goal of this ticket is to create the tagged template function and use it in all the service calls.

More on tagged templates here: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#tagged_templates

lindakatcodes avatar Nov 03 '22 21:11 lindakatcodes