removed dependency on global angular