title: How do i set the active tab in PrimeNG tabMenu?
body: <p>Where I do declare activeIndex and how to use this variable ? </p>
  
  <p>I have
  html file:</p>
  
  <pre><code>&lt;p-tabMenu [model]="tabMenuItems"&gt;&lt;/p-tabMenu&gt;
  </code></pre>
  
  <p>and typescript file:</p>
  
  <pre><code>tabMenuItems: MenuItem[];
  private stateId: number;
  private id: number;
  ...
  ngOnInit() {
     this.tabMenuItems = [
          {label: 'Bar1', icon: 'ui-icon-insert-chart',
              command: (event: any) =&gt; {
                  this.router.navigate(['/#', 
               this.id],{ queryParams: {'stateId': this.stateId} }); }
          },
          {label: 'Bar2', icon: 'ui-icon-date-range',
              command: (event: any) =&gt; {
                  this.router.navigate(['/#', this.id],{ queryParams: {'stateId': this.stateId} }); }
          },
          {label: 'Bar3', icon: 'ui-icon-book',
              command: (event: any) =&gt; {
                  this.router.navigate(['/#', this.id],
                      { queryParams: {'stateId': this.stateId} }); }
          },
          {label: 'Bar4', icon: 'ui-icon-help-outline',
              command: (event: any) =&gt; {
                  this.router.navigate(['/#', this.id],
                      { queryParams: {'stateId': this.stateId} }); }
          },
          {label: 'Bar5', icon: 'ui-icon-public',
              command: (event: any) =&gt; {
                  this.router.navigate(['/#', this.id],
                      { queryParams: {'stateId': this.stateId} }); }
          }
      ];
  </code></pre>
  
  <p><strong>How can i set the active tab, so each menuitem activate the corresponding tab?</strong></p>