I think the attraction of water with the ions is stronger than just the ions attraction, because if the attraction was greater than that of water, it would not have dissolved. Sodium is positively charged so it attracts the oxygen while hydrogen faces away, while chloride ion is negative and therefore it attracts the hydrogen atoms while the oxygen atom faces away.