The metal ion in an ionic compound will loose an electron becoming a cation. It will therefore develop a positive charge. The magnitude of the charge depends on the number of electrons lost. If one electron is lost the ion gains a +1 charge and of 2 is lost it gains a +2 charge ect.