1

// why it dont give output as soni, Angular 2 using typescript

let u = { lastname: 'soni' };
    let xx = '${u.lastname}';
    console.log(xx);

1 Answer 1

2

Use the other single quote:

let xx = `${u.lastname}`;
Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.