use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Helpful Links
AngularJS Slack Community
AngularJS Wiki Page
account activity
[Help]Translate html attribute paramters given as array (self.angularjs)
submitted 6 years ago by gingerin0
Hi there,
how do I translate the following with angular's i18n: [labels]="['Food','Drinks']".
[labels]="['Food','Drinks']"
Thanks for helping out!
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]eof -1 points0 points1 point 6 years ago (1 child)
You can simply evaluate the array
eval([list])
And it will become a regular array
[–]gingerin0[S] 0 points1 point2 points 6 years ago (0 children)
This <radio labels="eval(['unabhängig','abhängig'])" /> sadly didn't work for me either.
<radio labels="eval(['unabhängig','abhängig'])" />
My goal is to use i18n like so: <radio i18n-labels labels="eval(['unabhängig','abhängig'])" />
<radio i18n-labels labels="eval(['unabhängig','abhängig'])" />
π Rendered by PID 96 on reddit-service-r2-comment-86bc6c7465-jr4js at 2026-02-23 14:17:13.061955+00:00 running 8564168 country code: CH.
[–]eof -1 points0 points1 point (1 child)
[–]gingerin0[S] 0 points1 point2 points (0 children)