In chemistry, we learn that dipole moment tells us about measure of polarity in a molecule. In books, it is written that "conventionlly the direction of dipole moment is from electropositive to electronegative element or less electronegative to more electronegative element"
My question is that in physics we are taught that the direction of dipole moment is from negative charge to positive charge as convention, so what is the basis behind the conventions of dipole moment in the two subjects which leads to different signs of dipole moment?