最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - What is the main differences between DOM element and angular element - Stack Overflow

programmeradmin4浏览0评论

That's the question, but specifically my problem is:

  1. I can't execute getComputedStyle it keep yelling the first parameter is not type of element.
  2. I can't access raw DOM property.
  3. 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:

  1. I can't execute getComputedStyle it keep yelling the first parameter is not type of element.
  2. I can't access raw DOM property.
  3. 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
Add a ment  | 

1 Answer 1

Reset to default 6

Angular 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?

发布评论

评论列表(0)

  1. 暂无评论