|
|
@ -198,6 +198,8 @@ export class AllocationsPageComponent implements OnDestroy, OnInit {
|
|
|
|
this.changeDetectorRef.markForCheck();
|
|
|
|
this.changeDetectorRef.markForCheck();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
this.initialize();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public initialize() {
|
|
|
|
public initialize() {
|
|
|
@ -217,15 +219,15 @@ export class AllocationsPageComponent implements OnDestroy, OnInit {
|
|
|
|
this.markets = {
|
|
|
|
this.markets = {
|
|
|
|
developedMarkets: {
|
|
|
|
developedMarkets: {
|
|
|
|
name: 'developedMarkets',
|
|
|
|
name: 'developedMarkets',
|
|
|
|
value: 0
|
|
|
|
value: undefined
|
|
|
|
},
|
|
|
|
},
|
|
|
|
emergingMarkets: {
|
|
|
|
emergingMarkets: {
|
|
|
|
name: 'emergingMarkets',
|
|
|
|
name: 'emergingMarkets',
|
|
|
|
value: 0
|
|
|
|
value: undefined
|
|
|
|
},
|
|
|
|
},
|
|
|
|
otherMarkets: {
|
|
|
|
otherMarkets: {
|
|
|
|
name: 'otherMarkets',
|
|
|
|
name: 'otherMarkets',
|
|
|
|
value: 0
|
|
|
|
value: undefined
|
|
|
|
}
|
|
|
|
}
|
|
|
|
};
|
|
|
|
};
|
|
|
|
this.positions = {};
|
|
|
|
this.positions = {};
|
|
|
@ -281,6 +283,16 @@ export class AllocationsPageComponent implements OnDestroy, OnInit {
|
|
|
|
// Prepare analysis data by continents, countries and sectors except for cash
|
|
|
|
// Prepare analysis data by continents, countries and sectors except for cash
|
|
|
|
|
|
|
|
|
|
|
|
if (position.countries.length > 0) {
|
|
|
|
if (position.countries.length > 0) {
|
|
|
|
|
|
|
|
if (!this.markets.developedMarkets.value) {
|
|
|
|
|
|
|
|
this.markets.developedMarkets.value = 0;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
if (!this.markets.emergingMarkets.value) {
|
|
|
|
|
|
|
|
this.markets.emergingMarkets.value = 0;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
if (!this.markets.otherMarkets.value) {
|
|
|
|
|
|
|
|
this.markets.otherMarkets.value = 0;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
this.markets.developedMarkets.value +=
|
|
|
|
this.markets.developedMarkets.value +=
|
|
|
|
position.markets.developedMarkets * position.value;
|
|
|
|
position.markets.developedMarkets * position.value;
|
|
|
|
this.markets.emergingMarkets.value +=
|
|
|
|
this.markets.emergingMarkets.value +=
|
|
|
|