\underset{\text{formula equation}}{2 AgNO_3(aq) + BaCl_2(aq)} →2 AgCl(s) + Ba(NO_3)_2(aq)
\underset{\text{net ionic equation}}{Ag^+ + Cl^-→AgCl(s)}
Although AgCl is an ionic compound, it is written in the un-ionized form on the right side of the ionic equations because most of the Ag^+ and Cl^- ions are no longer in solution but have formed a precipitate of AgCl The Ba^{2+} and NO^-_3 ions are spectator ions.