prevent crash when angular is not defined