Ionic compounds consist of cations and anions which are electrostatically attracted to each other due to their opposite charges.

Therefore, the IUPAC naming reflects this and goes as follows:

Cation name + Anion name

The cation must go first, and make sure to add the charge in roman numerals when applicable to the IUPAC name!