title: NullInjectorError: No provider for DecimalPipe
body: <p>I have implemented lazy loading in my application. One of my services needs to include DecimalPipe.</p>
  
  <p>service --> shared module --> App module</p>
  
  <p>This is my structure. I've already included "CommonModule" in app.module.ts and My service also needs Decimal Pipe. </p>
  
  <ol>
  <li>Including "Decimal Pipe" in my shared module gives the below error:</li>
  </ol>
  
  <blockquote>
    <p>Type DecimalPipe is part of the declarations of 2 modules:
    CommonModule and SharedModule! Please consider moving DecimalPipe to a
    higher module that imports CommonModule and SharedModule. You can also
    create a new NgModule that exports and includes DecimalPipe then
    import that NgModule in CommonModule and SharedModule.</p>
  </blockquote>
  
  <p>So Since it is already part of Commons Module, why doesn't it take Decimal pipe from Commons Module. ?
  If It is not declared, below error is shown</p>
  
  <blockquote>
    <p>NullInjectorError: No provider for DecimalPipe!</p>
  </blockquote>
  
  <p>Please let me know how to handle this error.
  Thanks in advance!</p>