You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
in gallery we need to provide [metadata] in case of using external json file for images, here always we need to put hard coded URL like "'/assits/img/images.json'", but here we can't put dynamic URL like [metadata]="'{{url}}'" where url consists dynamic url bind from typescript/angular class.
The text was updated successfully, but these errors were encountered:
try following line in your ts file
this.metaDataURI = "data:application/octet-stream," + encodeURIComponent(JSON.stringify(yourARRAY));
HTML -
<gallery [flexBorderSize]="3" [flexImageSize]="7" [metadataUri]="metaDataURI" (viewerChange)="viewerChange(this)">
in gallery we need to provide [metadata] in case of using external json file for images, here always we need to put hard coded URL like "'/assits/img/images.json'", but here we can't put dynamic URL like [metadata]="'{{url}}'" where url consists dynamic url bind from typescript/angular class.
The text was updated successfully, but these errors were encountered: