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).

Parameters

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

Return

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

Examples

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.
Demo:
This is a div