angular - Primeng Button not showing label -
i have primeng button in angular4 application.
label of button not displaying.button displaying small without label.
<div id="main"> <form #newjobcleanupform="exform" (ngsubmit)="onsubmit(exampleform)"> <label class="stylelabel" for="jobnumber"><span>job number</span> <input type="text" pinputtext class="styletext" id="jobnumber" required [(ngmodel)]="jobnumber" name="jobnumber"> <button pbutton type="button" label="click"></button></label> </form> </div>
this issue caused missing import of primeng's buttonmodule.
please add import same module, component defined in.
import {buttonmodule} 'primeng/primeng'; ... @ngmodule({ imports: [ ... buttonmodule ] ...
Comments
Post a Comment