Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Why I still see by and at
Message
General information
Forum:
Javascript
Category:
Other
Miscellaneous
Thread ID:
01608885
Message ID:
01608925
Views:
41
>Eeeek...
>
>You should make your life easier and use ng-show/ng-hide expressions with [span] elements to display/hide content like this. Much easier to deal with than these long expressions...
>
>And... aren't those expressions C# expressions? Angular can only render values from you model and some limited JavaScript. Pretty sure String.IsNullOrWhiteSpace() and TrimEnd() don't exist in JavaScript and even if it did Angular wouldn't understand it because it's limited to a very small subset of JavaScript.
>
>+++ Rick ---
>

Thanks, Rick. For some reason I thought we should use C# in the {{}} blocks. At least C# null expressions work fine, e.g.

if (condition)? expr1: expr2

Anyway. I simplified this expression and removed checks for empty stuff (these columns should not be empty anyway).
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform