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

Popular posts from this blog

node.js - Node js - Trying to send POST request, but it is not loading javascript content -

javascript - Replicate keyboard event with html button -

javascript - Web audio api 5.1 surround example not working in firefox -