AngularJS provides
$parse service to evaluate
expression.In a template AngularJS expression are presented in
{{ }}.AngularJS uses
$parse under the hood to compile link and display the value in the browser.
$parse() method returns a function for the given expression context.The value of the context can be changes using
assign() method.In this
demo, "
We will explore $parse method by using a simple example".Below code has code for this demo.Assignment of context can be done in two different...
Published on October 03, 2014 12:50