0

I'm new to AngularJS and I followed a tutorial to learn it. When I tried to assign a string literal to scope member it works, but it doesn't work if assigned a function instead. The code is as follow:

enter image description here

The result becomes the member value is assigned the definition text of the function, instead of the return value of the function. Any idea? Thanks very much.

0

1 Answer 1

1

tutorialName is a function, so you should use the function () inside the expression

<br> This tutorial is {{tutorialName()}} </br>
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.