one way to look at it involves electronegativity. For a bond to be ionic, difference in electronegativity should be greater than 1.7
electronegativity of N is 3.0, and that of hydrogen is 2.2
the difference is less than 1.7
electronegativity of barium is 0.89 and that of bromine is 2.96
the difference is more than 1.7, hence ionic.
more logically, the bond will depend on polarisation. This occurs when a high charge density cation distorts the electron cloud of a large anion. When polarisation occurs, there is sharing of electrons instead of transfer of electrons, hence a covalent bond.