Update API of angular-scroll