copy of angular-base