That's the question, but specifically my problem is:
- I can't execute
getComputedStyle
it keep yelling the first parameter is not type of element. - I can't access raw DOM property.
- Often i can't see raw DOM property in web console.
I care more about my understanding rather than getting my code running.
That's the question, but specifically my problem is:
- I can't execute
getComputedStyle
it keep yelling the first parameter is not type of element. - I can't access raw DOM property.
- Often i can't see raw DOM property in web console.
I care more about my understanding rather than getting my code running.
Share Improve this question edited Jun 23, 2016 at 22:13 Adi Prasetyo asked May 18, 2016 at 12:45 Adi PrasetyoAdi Prasetyo 1,0421 gold badge16 silver badges43 bronze badges 2- Where is your code? and What is the issue? – Dalorzo Commented May 18, 2016 at 12:47
- sorry i asking about conceptual differences, so i didn't attach any code – Adi Prasetyo Commented May 18, 2016 at 12:51
1 Answer
Reset to default 6Angular Element: If jQuery is available, angular.element is an alias for the jQuery function. If jQuery is not available, angular.element delegates to Angular's built-in subset of jQuery, called "jQuery lite" or jqLite.
https://docs.angularjs/api/ng/function/angular.element
DOM element: Document object model. The DOM is the way Javascript sees its containing pages' data. It is an object that includes how the HTML/XHTML/XML is formatted, as well as the browser state.
A DOM element is something like a DIV, HTML, BODY element on a page. You can add classes to all and add style with respect to added classes using CSS, or interact with them using JS. look at this answer What is DOM element?