Calling Child Method from Parent Component using Temp Ref Variable

Temp Ref Variable is used to read properties and call method of child component in the template.

Temp Ref Variable can be made by adding in the tag . Below is Child component that is having one method and one variable.

Now from template we can use properties.

Output:

I am child component.

Leave a Reply

Your email address will not be published. Required fields are marked *