angularjs - How to return result of function in HTML at Angular? -
how return result in html template fnuction angular js?
html:
<div>{{getname({{type}})}}</div>
angular js:
$scope.getname = function (type){ return 'bob'; }
i need bob
in div
element
remove second pair of curly braces. {{getname(type)}}
sufficient.