title: how to change Labels in primeng toggle button Angular?
body: <p>I have info button as component. And I want to use it more than one time with different Labels. Primeng has onLabel attribute, but it doesnt work in parent component. May be somebody know how to do that? </p>
  
  <p><b>info-button.component</b>
  html:</p>
  
  <pre><code>&lt;p-toggleButton
      onIcon="pi pi-info"
      offIcon="pi pi-times"&gt;i&lt;/p-toggleButton&gt;
  </code></pre>
  
  <p>ts</p>
  
  <pre><code>@Component({
    selector: 'app-infobutton',
    templateUrl: './info-icon.component.html',
    styleUrls: ['./info-icon.component.css']
  })
  export class IconComponent implements OnInit {
    @Input()
    onLabel: string;
  
    constructor() { }
  
    ngOnInit() {
    }
  }
  </code></pre>
  
  <p>I call info button in some component, more than ones
  <b>some.component</b>
  html: </p>
  
  <pre><code>&lt;app-infobutton class="col-1" [onLabel]="'text'" &gt;&lt;/app-infobutton&gt;
  &lt;app-infobutton class="col-1" [onLabel]="'text2'" &gt;&lt;/app-infobutton&gt;
  </code></pre>
  
  <p>ts:</p>
  
  <pre><code>export class ParentComponent implements OnInit{
    text: string = "some text";
    text2: string = "another text";
  }
  </code></pre>
  
  <p>this 'some Text' I get as attribute. not like label.</p>
  
  <p>Output</p>
  
  <pre><code>&lt;app-infoicon _ngcontent-cee-c3="" class="col-1" _nghost-cee-c5="" ng-reflect-on-label="some Text" &lt;!--this is my output--&gt;&gt;
     &lt;div _ngcontent-cee-c5="" class="info-icon icon-default"&gt;
        &lt;p-togglebutton _ngcontent-cee-c5="" officon="pi pi-times" onicon="pi pi-info" ng-reflect-on-icon="pi pi-info" ng-reflect-off-icon="pi pi-times"&gt;
             &lt;div class="ui-button ui-togglebutton ui-widget ui-state-default ui-corner-all ui-button-text-icon-left ui-state-active" ng-reflect-ng-class="[object Object]"&gt;
                 &lt;span class="ui-button-text ui-unselectable-text"&gt;Yes &lt;!--this is Label--&gt;&lt;/span&gt;&lt;/div&gt;
         &lt;/p-togglebutton&gt;
      &lt;/div&gt;
   &lt;/app-infoicon&gt;
  </code></pre>