Hello list,

is there a way to bind a map to a dictionary in such a way that the map (key, 
value) structure is actually preserved?

I'm doing something like

%spark
    val mymap = Map("mykey"->"myvalue")
    z.angularBind("mydictionary", mymap)

%angular
   my dictionary is:  {{mydictionary}}


I would like to get something like
   
    my dictionary is: {"mykey" : "myvalue"}

but what I get is instead:

   my dictionary is: {"key1":"mykey","value1":"myvalue"}

So angularBind maps my map into a dictionary (good), yet not in the smartest 
way (from my POV).

Thanks for any help
Andrea 

Reply via email to