I was looking for the utility which will allow binding of data object in 
one format into another and was not able to find a decent declarative with 
minimal code way.

What came to imagination was looking like:
<iron-ajax url="..." last-response="{{srcSections}}" />
<iron-lambda lambdas="errorCheck,name2id" from="[[selectedSection]]"  to=
"{{selectedId}}" catch="errorMessage" />
<iron-ajax url="...[[selectedSection]]" last-response="{{sectionJson}}" >

<some-select value="{{selectedSection}}" from="[[srcSections]]" field='name' 
/>
<script>
class...
{
    errorCheck(wikiResult){ if( wikiResult.error) throw wikiResult.error; 
return wikiResult; }
    name2id( wikiResult ){ return wikiResult.parse.wikitext['*'] }
}
</script>

Before rushing and implementing would be nice to know *whether such 
solution exists or planned?*
Not necessary with same syntax but at least with similar functionality.

Of course the beauty of lambdas are in inline capabilities and chaining. 
Something like 
<iron-lambda lambdas=" errorCheck, x=>x.parse.wikitext['*']  " from=
"[[selectedSection]]"  to="{{selectedId}}" catch="errorMessage" />
without the need for external functions declaration.
-s

Follow Polymer on Google+: plus.google.com/107187849809354688692
--- 
You received this message because you are subscribed to the Google Groups 
"Polymer" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/polymer-dev/60f1386b-d442-43b6-a6f4-cf802f1c8a06%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to