Skip to content
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

opendialog from markdown hyperlink #197

Open
srijithchandran opened this issue Nov 18, 2019 · 2 comments
Open

opendialog from markdown hyperlink #197

srijithchandran opened this issue Nov 18, 2019 · 2 comments
Labels
enhancement Improvement request

Comments

@srijithchandran
Copy link

srijithchandran commented Nov 18, 2019

I want to render the below hyper link in markdown file

<a href (click)="!!openDialog('test','test2',1)">
Try Out
</a>
@jfcere
Copy link
Owner

jfcere commented Nov 19, 2019

Hi @srijithchandran,

This isn't possible right now, even if you play with the renderer the library won't process Angular bindings. I believe this is something that Ivy compilation (that will be enabled by default in Angular 9) should probably allows but we'll have to wait to see.

@jfcere jfcere added the enhancement Improvement request label Nov 19, 2019
@muuvmuuv
Copy link

Very interested into this!

In our app I want to present an alert modal that says "This link is not safe and not added by us. Be aware of any risk clicking on links on the internet. More in our policy(link).".

ATM I have added an elementRef and parse each link after markdown render and add a event listener to it, but that is very dirty and doesn't work all the time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Improvement request
Projects
None yet
Development

No branches or pull requests

3 participants