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

How to trigger an on-click event #162

Open
ms87173 opened this issue Nov 21, 2018 · 0 comments
Open

How to trigger an on-click event #162

ms87173 opened this issue Nov 21, 2018 · 0 comments

Comments

@ms87173
Copy link

ms87173 commented Nov 21, 2018

We have a data driven application. We receive the markdown in the data from the back-end, however we need to trigger a post call when clicked on the link coming from it. I added a span in our markdown and added on-click event to trigger our function here is the snippet from it

## Agree and Submit
<br>
<br>
Please read both the <span class="btn-link" on-click =  "acknowledgement()">Banking Account Terms and Conditions </span> and the <span class="btn-link" on-click =  "acknowledgement()">Read before signing </span> section of this application. You may also print, download or email a copy of each for your accounts.  

these forms are generated dynamically so I can't hard code the link. but when ngx-md generates it, it removes the on-click from it. Is there a way for me to accomplish this?
we are using angular 6

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

No branches or pull requests

1 participant