Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
lindakatcodes opened this issue Nov 3, 2022 · 0 comments

Comments

@lindakatcodes
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant