I am trying to do some things in Angular 2 Alpha 28, and am having an issue with dictionaries and NgFor.
I have an interface in TypeScript looking like this:
If you have es6-shim or your tsconfig.json target es6, you could use ES6 Map to make it.
es6-shim
tsconfig.json
es6
var myDict = new Map(); myDict.set('key1','value1'); myDict.set('key2','value2'); key:{{keyVal[0]}}, val:{{keyVal[1]}}