If a batted ball hits the base then bounces foul is it fair or foul?

a ball that hits a base (other than home plate) then goes into foul territory is a fair ball