An ionic compound is always an electrolyte. An electrolyte is any substance that conducts electricity when liquefied in water. An ionic compound is a strong electrolyte.
Strong electrolytes dissociate wholly into anions (positively charged ions) and cations (negatively charged ions) in water. All strong bases, strong acids and salts are strong electrolytes. Examples of ionic compounds are HCI, NaOH and NaCI in water.
Weak electrolytes, such as weak acids and weak bases, dissociate into ions partially in water. Examples of weak electrolytes are HF and NH3 or ammonia in water. A non-electrolyte is any substance that does not conduct electricity when liquefied in water. Examples are sugar and ethyl alcohol.