Jquery add html to element

Hi.

Im trying to get below to work within my ionic app:

$container=$('.container');
$container.html(data);

To insert “data” into the element “.container”. Ive added jquery to the index.html file.

Is there a reason this doesnt work? Should I use an Angular equivalent instead? And in general, is it really bad using jquery with ionic?

Thanks!