Issue 5 in google-jstemplate: jsselect to loop over object properties

16 views
Skip to first unread message

google-j...@googlecode.com

unread,
Nov 28, 2012, 7:38:19 PM11/28/12
to google-j...@googlegroups.com
Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 5 by martin.m...@gmail.com: jsselect to loop over object
properties
http://code.google.com/p/google-jstemplate/issues/detail?id=5

For data:
var tplData = {username:"Jane User",
addresses:{
primary: {location:"111 8th Av.", label:"NYC front
door"},
2: {location:"76 9th Av.", label:"NYC back door"},
3: {location:"Mountain View", label:"Mothership"}
}
};


It should be possible to loop over addresses with jsselect.
Not sure if $index should contain the property name or they should be
additional $key variable.

google-j...@googlecode.com

unread,
Dec 4, 2012, 3:57:11 PM12/4/12
to google-j...@googlegroups.com

Comment #1 on issue 5 by martin.m...@gmail.com: jsselect to loop over
object properties
http://code.google.com/p/google-jstemplate/issues/detail?id=5

for anybody interested:
1. star this ticket to get build in support for this functionality
2. for workaround see this mailing post
https://groups.google.com/forum/?fromgroups=#!topic/google-jstemplate/VmKoiM6MZM0
from mesch



Reply all
Reply to author
Forward
0 new messages