I guess not. You might invoke the Angular compiler on the client for this
but I haven't investigated this myself yet.
It would't work well with server-side rendering and the upcoming
server-side template compilation.
On Tuesday, January 26, 2016 at 6:47:52 PM UTC+1, Josh Pendergrass wrote:
>
> what is the $eval equivalent in angular2. I have an angular expression
> returned in json and an object returned from a server. so i want to do
> something like this.
>
> var obj = {FullName:"Josh Pendergrass", Id:123};
> var expression = "Name : {{FullName}}";
>
> $eval(expression,obj}; // result Name : Josh Pendergrass.
>
>
>
> Is this possible in angular2?
>
>
>
--
You received this message because you are subscribed to the Google Groups
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.