String literal and its concatenation syntax in angular
How to define String literal and its concatenation in angular? You can define a string literals or get response data from back end API's then use the below concatenation syntax. The first thing, you need to remember, use back quote( `) , doller ( $) , open braces( { ) and close braces ( } ) symbols. Example: let str1='xyz'; let str2 = 'abc'; let outputStr = `${str1}add${str2}`; // xyzaddabc