Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

286
Views
How to use an angular property as an html form input value
  <form action="https://www.sandbox.paypal.com/cgi-bin/webscr" method="post" target="_top">
  <input type="hidden" name="cmd" value="_s-xclick">
  <input type="hidden" name="hosted_button_id" value="BSTSTWJ2TNN">
  <input type="hidden" name="custom" value="this.user?.uid">
  <button mat-flat-button color="warn">
    {{
      project.name
    }}
  </button>  
</form>

I need to pass an angular property named "this.user?uid" from a component to an HTML hidden form value with the name "custom" and will be passed to a paypal transaction.

I am not quite sure how to do this in angular but I have seen examples done in PHP.

Can anyone please point me to the right direction?

Thank you!

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Try putting it in the double brackets:

<input type="hidden" name="custom" value={{this.user?.uid}}>
about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!