how to write function in angular code example Example: angular function in html <div> {{ function(param, param) }} </div>