How to use the Prime-ng component on your website.

Prime-ng

Prime-ng is the angular user interface component, which helps to build dynamic and responsive websites for all the devices such as desktops, mobile, iPad, tablets, and so on. Nowaday frameworks are becoming popular in the web development domain. It is necessary to stay up to date in the market.

How to use the Prime-ng component in your project

If you want to install prime-ng in your project. Just go to the vs code terminal or windows PowerShell and type the following commands.

npm install primeng --save
npm install primeicons --save

Once you have installed the prime-ng component and prime-ng icons you need to import these modules into your angular application.

import {AccordionModule} from 'primeng/accordion';     //Accordition and Accordition tab
import {MenuItem} from 'primeng/api';                       //Api

In the CSS dependencies, you need to add the following styles.

node_modules/primeicons/primeicons.css
node_modules/primeng/resources/themes/saga-blue/theme.css
node_modules/primeng/resources/primeng.min.css