var varMap = {};
for(var i=1; i<10; i++) varMap['stop'+i] = 123;
I think this will help
More Related Contents:
- Angular 7 go offline?
- How do I download a file with Angular2 or greater
- Importing lodash into angular2 + typescript application
- (change) vs (ngModelChange) in angular
- angular 2 how to return data from subscribe
- Angular4 – No value accessor for form control
- Typescript Type ‘string’ is not assignable to type
- Angular 2 Karma Test ‘component-name’ is not a known element
- Property ‘value’ does not exist on type EventTarget in TypeScript [duplicate]
- How to do the chain sequence in rxjs
- Angular 6: How to set response type as text while making http call
- ngOnInit not being called when Injectable class is Instantiated
- using external JS libraries in my angular 2 project
- npm WARN … requires a peer of … but none is installed. You must install peer dependencies yourself
- Property ‘entries’ does not exist on type ‘ObjectConstructor’
- Is it a good practice using Observable with async/await?
- Rxjs toPromise() deprecated
- Unraveling Angular 2 book, Chapter 1, Example 5
- Angular 2 Component @Input not working
- Highlight the search text – angular 2
- Cast int to enum strings in Typescript
- angular 4+ assign @Input for ngComponentOutlet dynamically created component
- How to loop over object properties with ngFor in Angular
- Converting an image to base64 in angular 2
- how to define index in angular material table
- Storing Objects in localStorage
- TypeScript TS7015: Element implicitly has an ‘any’ type because index expression is not of type ‘number’
- Google Sign-In for Websites and Angular 2 using Typescript
- Filter Array in Array by date between 2 dates
- binding data to angular checkbox