I have tried to setup PrimeNg in to my Angular-CLI project. So I followed the steps like
npm install primeng --save
npm install primeui --save
I need a drop down, so I have added
import { DropdownModule } from 'primeng/primeng';
in to my main module.ts file followed by imports:[DropdownModule]
.
Then styles added in to the .angular-cli.json file like "../node_modules/primeng/resources/themes/omega/theme.scss",
"../node_modules/primeng/resources/primeng.min.scss"
.
I used .SCSS file for styling. I have added dropdown in to my html
<p-dropdown [options]="cities1" [(ngModel)]="selectedCity1"></p-dropdown>
My issue is style is not reflected into the page and showing the following error when I click on the drop down.
ERROR TypeError: Cannot read property 'style' of undefined