title: How to add a fragment to a page's content in SAPUI5
body: <p>I would like to add a dynamically created fragment to a page's content inside the view's controller.
  I currently have the following code:</p>
  
  <pre><code>    if(this.tableFragment) {
          this.tableFragment.destroy(true);
      }
      this.tableFragment = sap.ui.xmlfragment("com.example.app.view.fragments.FragmentName");
  
      this.getView().byId("pageID").addDependent(this.tableFragment);
  </code></pre>
  
  <p>and would like to insert it into a page:</p>
  
  <pre><code>&lt;Page id="pageID" title="Page Title" class="sapUiStdPage"&gt;                  
      &lt;content&gt;
  
      &lt;/content&gt;
  &lt;/Page&gt;
  </code></pre>
  
  <p>but I get an error that contains the following:
  <code>is not valid for aggregation "dependents" of Element</code></p>
  
  <p>I also get the error:
  <code>this.tableFragment.destroy is not a function</code></p>