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

319
Views
Defining the PrimeNG p-menuitem directly in the HTML page

I am currently trying to implement the p-menu directly in the HTML file instead of using the example shown in here

https://www.primefaces.org/primeng/#/menu

where the model is being created in the TypeScript file.

I have tried the following code but could not display anything in the HTML page.

<p-menu>
    <p-menu-list>
        <p-menuitem>
            <p-menuitem-text>Test</p-menuitem-text>
            <p-menuitem-icon icon="fas fa-bars"></p-menuitem-icon>
                </p-menuitem>
        </p-menu-list>
</p-menu>

The result of the HTML page with the above code is shown below where it only shows a empty box.

HTML Screen

Is there a way to directly implement the p-menuitem in the HTML file directly in the HTML page without using the TypeScript file?

about 4 years ago · Juan Pablo Isaza
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!