Step-by-step explanation:
Ionic compounds are formed with metals and non- metals. If a compound is formed with metal and non- metal then it is an ionic compound. e.g.NaCl,CaCl2,MgO,Mg3N2 etc. Again, if electronegativity difference betn the two elements of the compound is more than 1.7, then the compound is ionic. e.g.in BeCl2, Be is metal and Cl is non metal but it is a covalent compound. Be has stable electronic configuration i.e. [He] 1s2 and the electro negativity difference between Be & Cl is only 1.5 which is the condition of polar covalent bond and it’s dipole moment is zero.
Normally,ionic bonds are formed with metal and non metal element