-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
render link from an input #6
Comments
The links should be usually cleared on change (if I understood your issue correctly) 🤔 |
I tried to use ngx-link-preview. I am using Angular 9 Once installed successfully, when I compiled it gives below error. ERROR Let me know if I am missing anything or any specific requirement to use this tag. Thanks |
@vipul306 is there the missing backslash in the error message? |
Good day !
I'm using this extension and I like it so far, I faced some issues using it such as rendering links from an input element. let me explain with an example:
I have a URL input
``
<input type="url" #url/>
<ng-container *ngIf="isUrl(url.value)">
<ngx-link-preview
[apiRoute]="'http://v2node.local/api/link-preview/test'"
[getApiEndpoint$]="apiCallbackFn"
[parseForLinksStr]="url.value"
[queryParamName]="'url'"
>
``
in this use case, the extension keeps sending requests on every found URL if le's say I wanted to get metadata for https://www.google.com I will be getting a list of previews for these links ( if they exist ) :
https://www.g.com
https://www.go.com
https://www.goo.com
https://www.goog.com
https://www.googl.com
https://www.google.com
It would be nice if there is an option for fetching only one link ( the last link for example). and make the fetching list of links optional
The text was updated successfully, but these errors were encountered: