Owen Kelvin
Owen Kelvin

Reputation: 15083

Nested string interpolation in JavaScript

While trying to generate a URL dynamically I ended up nesting interpolation like below:

`api/topics/${topicId}/assessments${assessmentId ? `/${assessmentId}` : ''}`;

This worked correctly, but my worry is if this brings with it any security vulnerabilities in an Angular built application.

Upvotes: 1

Views: 854

Answers (0)

Related Questions