Reputation: 15083
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