I've already tested this before and yet again I double checked it and it
won't work:
Parser Error: Bindings cannot contain assignments at column 3
<p>{{i="1"}}</p>
i is a global variable that I defined in the .ts file.


On Thu, Mar 21, 2019 at 7:30 PM Sander Elias <sanderel...@gmail.com> wrote:

> Hi Iama,
>
> You can assign whatever you want inside the template.
>
> <p>{{ someVar = "1-2-3"}} </p>
>
> Will do.
> Or is that not really your question?
> Regards
> Sander
> ​
>
> --
> You received this message because you are subscribed to the Google Groups
> "Angular and AngularJS discussion" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to angular+unsubscr...@googlegroups.com.
> To post to this group, send email to angular@googlegroups.com.
> Visit this group at https://groups.google.com/group/angular.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Angular and AngularJS discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to angular+unsubscr...@googlegroups.com.
To post to this group, send email to angular@googlegroups.com.
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to