Bug fix: use window.angular instead of angular.