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

networking - Vagrant-provisioned VirtualBox VM is not reachable from Ubuntu host -

c# - ASP.NET Core - There is already an object named 'AspNetRoles' in the database -

ruby on rails - ArgumentError: Missing host to link to! Please provide the :host parameter, set default_url_options[:host], or set :only_path to true -