title: PrimeNG p-tree: How to hide certain node from ptree on basis of a boolean value coming from json file?
body: <p>I am using primeng tree to display json data like this:</p>
  
  <pre><code>&lt;p-tree [value]='dataToDisplayFromConfig' selectionMode='checkbox' [(selection)]='selectedData'&gt;
  </code></pre>
  
  <p>The JSON data is being read into <em>dataToDisplayFromConfig</em>.
  I want to make certain nodes invisible on basis of <strong>visible</strong> property that comes from this json:</p>
  
  <pre><code>[
      {
          "label": "f",
          "children": [
              {
                  "label": "",
                  "visible": true,
                  "data": "f"
              },
              {
                  "label": "s",
                  "visible": false,
                  "data": "s"
              }            
          ]
      }
  ]
  </code></pre>
  
  <p>how can we achieve it?</p>
  
  <p>Thanks, in advance.</p>