2

I'm new to coding so I have <strong> ValueFromTypeScript </strong> in my html and I want to pull name from my ts file name:string = "George"; is this possible?

1

2 Answers 2

1

Simply tried this

<strong> {{name}}</strong>

here {{}} is called string interpolation.

Have a look in angular documentation

https://angular.io/tutorial

This has sample app as well which we surely give you good understanding

Sign up to request clarification or add additional context in comments.

2 Comments

The property is called name.
oh.. thanks @ConnorsFan.. I did typo error corrected now
0

You can use string interpolation to achieve that...refer this to know more

In your case it would be

 <strong> {{ name }} </strong> 

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.