You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@PascalPrecht just opened a PR fixing this - turns out the fix is super simple, and probably should be supported (although one should probably avoid doing complex expressions in the template itself for maintenance/testability reasons).
Activity
wesleycho commentedon Dec 21, 2015
To describe this in depth since there is not enough detail here, Angular 2 does not throw an error, but instead just handles it this way
Input
{{'foo' + 'bar'}}Output
{{'foo' + 'bar'}}It strips out the new line character, but does not actually interpolate.
0x-r4bbit commentedon Dec 21, 2015
Is this really a bug? Could we do multiline expressions in ng1?
wesleycho commentedon Dec 21, 2015
@PascalPrecht just opened a PR fixing this - turns out the fix is super simple, and probably should be supported (although one should probably avoid doing complex expressions in the template itself for maintenance/testability reasons).
michalstepien commentedon Apr 18, 2016
In beta 15, working . Example:
http://plnkr.co/edit/dt3mEhJTyM7vYs6eINtl?p=preview
wesleycho commentedon Apr 18, 2016
Yep, this can be closed, the fix got merged in a few months ago
pkozlowski-opensource commentedon Apr 18, 2016
Thnx @michalstepien and @wesleycho ! Closing.
angular-automatic-lock-bot commentedon Sep 8, 2019
This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.
Read more about our automatic conversation locking policy.
This action has been performed automatically by a bot.