It is called from the scope inside the controller definition function.