Skip to content

Use template strings #2

@brion25

Description

@brion25

getComments(name: string, owner: string) {
return this.http
.get(
"https://api.github.com/repos/" +
owner +
"/" +
name +
"/issues/5/comments"

should be:

return this.http 
     .get(`https://api.github.com/repos/${owner}/${name}/issues/5/comments`)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions