• ng.eval is not available in the Lite version

void ng.eval (String code) vs. 1.1.0 FULL ONLY

Evaluate a code segement without using the native eval function.

Native eval vs ng.eval

The main difference between these two functions is the scope the code will be executed under. The ng.eval executes code the same way as if you would place it in a script tag inside the body section. The Native eval will execute the code as if it was placed where the eval function is.

Parameters

String code Required vs. 1.1.0 Full+Lite
The code to be evaluated.

Examples

Using ng.eval(code)
Demo: