fortify icon indicating copy to clipboard operation
fortify copied to clipboard

Importing In Angular.

Open afsalkriti opened this issue 4 years ago • 7 comments

Is there a guide on how to integrate the web component in angular.

I am using the below code .

npm install @peculiar/fortify-webcomponents

In HTML.

<peculiar-fortify-certificates></ peculiar-fortify-certificates>

The Above code is throwing error , as it expects a module declare or an import statement.

afsalkriti avatar Dec 06 '21 05:12 afsalkriti

Hello @afsalkriti.

For Angular, you need to use cdn integration way.

donskov avatar Dec 06 '21 08:12 donskov

Hello @donskov ,

Thanks for the info , but the link you have provided is broken.

Is there a working example ?

afsalkriti avatar Dec 06 '21 09:12 afsalkriti

Sorry about the link. Please check cdn section on npm.

donskov avatar Dec 06 '21 09:12 donskov

Hi @donskov ,

I have created a stackblitz https://stackblitz.com/edit/angular-ivy-ajuu5a?file=src%2Fapp%2Fapp.component.html

I have configured everything as per the documents.

Still shows the error , can you help me in resolving the issue ?

afsalkriti avatar Dec 06 '21 10:12 afsalkriti

@donskov , just checking if you could find the issue ?

afsalkriti avatar Dec 08 '21 06:12 afsalkriti

@afsalkriti I found some examples where Stencil and Angular work correctly, but I can't force our example to work. I need more time to find a solution.

donskov avatar Dec 08 '21 10:12 donskov

@donskov , Thanks . Hope you will be able to find a solution soon .

Any workarounds until then ?

afsalkriti avatar Dec 10 '21 06:12 afsalkriti