is possible to create in angular 2 Map< String, List< String >>?
Map is ES6 feature and have nothing to do with Angular 2. You can create it using
var map = new Map<string, string[]>();
map.set('key', ['a', 'b', 'c']);
map.get('key');
You also need to set "module": "es6" in your tsconfig.json or use es6-shims definitions.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With