title: Setting global configuration for angular datatables
body: <p>I'm a little new to angular and was wondering how I can set the global configuration for datatables. Currently it seems I can only set it within each component that need to use it, but this is clearly bad practice. Is there any way to set the configuration globally and have it be available to all component templates?</p>
  <p>I want to be able to set the below in a single location and have any component template access it through <code>[dt-options]=&quot;dtOptions&quot;</code></p>
  <pre><code>dtOptions: DataTables.Settings = {
      language: {
          paginate: {
              first: &quot;&quot;,
              previous: &quot;&lt;&lt;&quot;,
              next: &quot;&gt;&gt;&quot;,
              last: &quot;&quot;
          }
      },
      lengthMenu: [[10, 25, 50, -1], [10, 25, 50, &quot;All&quot;]]
  }
  </code></pre>
  <p>Hope this makes sense</p>
  <p><strong>Angular version:</strong> 12.2.3</p>
  <p><strong>Datatables version:</strong> 12.0.0</p>