Can I set this.'something' of a service within a nested object that is dynamically created in that service? (maybe scope issues)
问题 I have the following service (it actually has more levels and elements but I trimmed it down to just a single example of what I'd like to work). It creates javascript objects within other objects dynamically based on csv files in the app.data folder. The line most relevant to this question is this.images = images; after the inner-most for loop. app.service('tabInfoService',function(csvService, tabsService ){ var tabData = tabsService.tabData; var tabCount = tabsService.tabCount; this.tabs={};