Angular.bind
will bind to a function which call another function and arguments will also passed from addData, In this example, there are two value one is 5 and another is first time 30 and later it take value form text box which is bind to scope variable num. See the code snippet: