As in LWC values cant be appended directly in view for example :
<a href={xyx.abc} target="_blank">link to create</a> ====>
<a href="abc"+{xyx.abc} target="_blank">link to create</a>
I was iterating through the values to replace {xyx} with "abc"+{xyx} in JS , However its not appending the values and no console logs are found.
import { LightningElement, track, api, wire } from 'lwc';
import getAccountsList from '@salesforce/apex/abc';
import getAccountsCount from '@salesforce/apex/abc';
import lwc_help from '@salesforce/resourceUrl/lwcHelpCss';
import {loadStyle} from 'lightning/platformResourceLoader';
import topics from '@salesforce/apex/abc';
import { NavigationMixin } from 'lightning/navigation';
import { CurrentPageReference } from 'lightning/navigation';
export default class RecordList extends NavigationMixin(LightningElement) {
// Injects the page reference that describes the current page
@wire(CurrentPageReference)
currentPageReference;
@track accounts;
@track error;
@api currentpage;
@api pagesize;
@track searchKey;
@track topicKey;
totalpages;
localCurrentPage = null;
isSearchChangeExecuted = false;
@track bShowModal = false;
@track videoCheck = '';
@wire(topics) topic;
handleShowModal(event) {
var finalArray=[];
var appender ="http://jsonviewer.stack.hu/";
console.log('Document Modal Called');
this.bShowModal = true;
this.videoCheck=true;
this.doccheck=false;
this.videoDoc='';
this.videoDoc=event.target.value;
console.log(JSON.stringify(this.videoDoc));
console.log('this.header values : '+this.videoDoc);
var filterArrayVideos = [];
filterArrayVideos = this.videoDoc.filter(function(item) {
return item.xyz.FileType === "MP4"
});
console.log('filterArray values : '+JSON.stringify(filterArrayVideos));
this.videoDoc=filterArrayVideos;
console.log(JSON.stringify(this.videoDoc));
finalArray=this.videoDoc;
finalArray.forEach(function (item) {
console.log('item values : '+ JSON.stringify(item));
console.log(item.xyx.abc);
console.log('before append : '+appender.concat(' ',item.xyx.abc));
item.xyx.abc = appender.concat(' ',item.xyz.abc);
console.log('after append : '+ item.xyx.abc);
});
console.log(finalArray);
}
}