I am facing an issue with using a template property in Angular. Despite my attempts, it is not functioning as expected and I am unable to pinpoint the cause of the problem. To illustrate, I have set up a demonstration here:
https://github.com/Fulkerson/angular-property
This example is based on the Tour of Heroes. In my recent commit, I introduced the property propname
which simply returns the value of name
. Subsequently, I attempted to utilize this property in the dashboard (main page).
Essentially, my objective is to incorporate multiple properties that manipulate a field differently. However, why am I encountering difficulties in utilizing these properties within templates? Is there an alternative approach to achieve the desired outcome?