Issue
Currently I am trying to assign data-instagrm-permalink to a variable but it throws an errror saying "Can't bind to 'instgrm-permalink' since it isn't a known property of 'blockquote'". Here is a picture of the HTML code where the problem arises. enter image description here
Here is the typescript code that dynamically assigns the instagram post code. enter image description here
If you look at the html code line 3. The href is able to be assigned to the variable but in line 1 that data-instgrm-permalink is unable to be assigned to the variable.
I was wondering if I am doing anything wrong in the assignment? Any help would be appreciated.
Solution
The wrong in this assignment is
<blockquote class="instagram-media" [attr.data-instgrm-permalink]="igHref" data-instgrm-captioned data-instgrm-version="13" style="..."></blockquote>
igPostCode: string = "CzcHQPAyY56";
igHref: string = `https://www.instagram.com/p/${this.igPostCode}/?utm_source=ig_embed&utm_campaign=loading`;
Answered By - saidtechnology
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.