I've used ng-bind in angularjs like this
<div ng-bind="getVal()"></div>
where getVal()
return some value and it was in the controller.
But In Angular2 , I have a function getVal()
in the component and I need to call it from the template, in the same way like angular1.
I tried
<div [(ngModel)]="getVal()"></div>
But no luck, any idea?