I can't see any documentation on the headers property other than...
headers - (Map<string, string>)
How is this actually used? I have tried to bind to a property that holds a Map object but this does not seem to work.
for (let i = 0; i < context.videos.length; i++) {
var myMap = new Map();
myMap.set('Authorization', "TEST");
context.videos[i].headers = myMap;
pageData.videos.push(fromObject(context.videos[i]));
}
Ideally I would like to be able to use the binding syntax because my videos will be generated using a Repeater control. What is the correct way to do this?
I can't see any documentation on the
headers
property other than...How is this actually used? I have tried to bind to a property that holds a Map object but this does not seem to work.
I also tried setting the property on the
<VideoPlayer:Video />
element without successIdeally I would like to be able to use the binding syntax because my videos will be generated using a Repeater control. What is the correct way to do this?