Calling method from a Angular 2 class inside template
Either you call the method like this: {{user.name()}} // instead of {{user.name}} For this approach you need to be aware that you will lose the execution context (this). See this question for more details: ng-lightning – data object is undefined on lookup Or you define your method as a getter so you can use user.name … Read more