Giter VIP home page Giter VIP logo

ngx-link-preview's Introduction

Hi there ๐Ÿ‘‹

I am a Full Stack Software Engineer with 10+ years of experience in developing enterprise applications, mobile apps and open-source software.
๐Ÿ˜ Preferred: Angular, Laravel, ReactiveX, Docker, Ionic, Shopware 6
๐Ÿข Creating WordPress Websites since 2009
๐Ÿ“– Currently Learning: Fluid Mechanics, Numerical Analysis, Native Android Development
๐ŸŽ“ Active Studies: Mechanical Engineering @ RWTH Aachen University
๐Ÿ›  Other Skills: Adobe Photoshop, Illustrator, InDesign, PTC Creo

My Angular Libraries:
๐Ÿงฉ mat-icon-button-sizes
๐Ÿงฉ ngx-link-preview
๐Ÿงฉ ngx-md-icon
๐Ÿงฉ ngx-serp-preview
๐Ÿงฉ ngx-modern-alerts

ngx-link-preview's People

Contributors

btxtiger avatar dependabot[bot] avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

ngx-link-preview's Issues

Not compatible with Angular 9

Getting the following message:

This likely means that the library (ngx-link-preview) which declares NgxLinkPreviewModule has not been processed correctly by ngcc, or is not compatible with Angular Ivy. Check if a newer version of the library is available, and update if so. Also, consider checking with the library's authors to see if the library is expected to be compatible with Ivy.

@btxtiger

Error updating without `--force`

When tried installing, with this command: npm i ngx-link-preview. It failed saying:

npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR! 
npm ERR! While resolving: [email protected]
npm ERR! Found: [email protected]
npm ERR! node_modules/tslib
npm ERR!   tslib@"^2.1.0" from the root project
npm ERR!   tslib@"^2.1.0" from @angular/[email protected]
npm ERR!   node_modules/@angular/common
npm ERR!     @angular/common@"~12.0.5" from the root project
npm ERR!     peer @angular/common@">=6.0.0" from [email protected]
npm ERR!     node_modules/ngx-link-preview
npm ERR!       ngx-link-preview@"*" from the root project
npm ERR!     1 more (@angular/platform-browser)
npm ERR!   4 more (@angular/core, zone.js, @angular/platform-browser, @angular/animations)
npm ERR! 
npm ERR! Could not resolve dependency:
npm ERR! peer tslib@"^1.10.0" from [email protected]
npm ERR! node_modules/ngx-link-preview
npm ERR!   ngx-link-preview@"*" from the root project
npm ERR! 

Then forcing it to installed worked:

npm i --force ngx-link-preview

render link from an input

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

image

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.