use angular.forEach

Signed-off-by: fraserxu <xvfeng123@gmail.com>