Open santoshpatro opened 5 years ago
I have created a project with all the details: stackblitz.com/edit/angular-6vlspz . Here I am trying to use the value of MoreText from the moreTextContent() method of test.model.ts file. Any help on this is much appreciated.
I am using ngx-translate for managing the translation functionality for an angular application having ng-version="4.4.7"
I have the following key in translations file:
TestService.ts:
I am trying to use the moreText in test.model.ts file
test.model.ts:
I don't see any compile time errors, but at rumtime when it comes to use moreText in the parsedCountries() I am getting an error: ERROR TypeError: Cannot read property 'moreText' of undefined using ngx-translate