HTML_Element ng.get (Mixed obj) vs. 1.1.0 Full+Lite

The ng.get(obj) method is used to return any HTML element (extended by the ng.Element class) or any custom object (such as a plug-in or component - if supported).


Mixed obj Required vs. 1.1.0 Full+Lite
Can be one of the following:
  • String: an HTML element id.
  • HTML Element
  • Plug-in, Extended HTML Element or Component


HTML_Element Required vs. 1.1.0 Full+Lite
The extended HTML Element


Using ng.get(obj)
Let's say we have the following HTML code. After the page is loaded (can be used in a dom ready function) the following script code can retrieve the DOM element.
This is a div