I am very new to angularJS in JS in general and I am a bit confused about using $document. According to what I understood $document exposes some JQuery functions. So, when I want to remove an element matching a selector I do this :
$document.remove('.someClassSelector');
and the element should be removed from the DOM tree, right ? If not what is the correct way to manipulate DOM elements and their css in angular.
AngularJS embed a lite version of Jquery (jqLite).
If you want to use jqLite only (without embedding jquery), you can do the following to remove the element :
$documentis a jqLite shortcut to window.documentSee : docs.angularjs.org/api/angular.element