<p dir="auto">Date filter is not working on iPhone version of chrome (49.0.2623.73) and safari, it's working on desktop chrome (48.0.2564.116)<br>
<code class="notranslate">Last</code> swipe:{{last | date:'dd MM yyyy'}}   Expiry:{{expiry | date:'dd MM yyyy'}}</p>
<p dir="auto"><em><strong>Note:</strong> This is a duplication of a <a href="http://stackoverflow.com/posts/38848089/edit" rel="nofollow">stackoverflow question</a> i asked a few weeks ago without any answer.<br>
I don't know if it's related to a bug or if it's the desired behavior.<br>
As i did not find answer on stackoverflow, i thought it's was the only place left to find one.</em></p>
<hr>
<p dir="auto">I'm writing a <strong>custom validator</strong> for a <strong>custom form component</strong>.<br>
Right now, i can inject dependencies in my custom validator such as services...</p>
<p dir="auto">But i need to have access from within the validator to informations stored in the Component...<br>
So i'm trying to inject the component in the Validator class, but this does not work..</p>
<p dir="auto">Maybe i'm missing something with DI ?</p>
<p dir="auto"><strong>Look at this plunker <a href="https://plnkr.co/edit/77muDxHCw7haGjTXWBcw?p=preview" rel="nofollow">here</a></strong></p>
<p dir="auto">When you open it, everything should work fine.<br>
Uncomment everything in the validator constructor, like this:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="constructor( private test: TestService, private component: CustomFormControlComponent ) {
  test.serviceMethod();
  component.componentMethod();
}"><pre class="notranslate"><code class="notranslate">constructor( private test: TestService, private component: CustomFormControlComponent ) {
  test.serviceMethod();
  component.componentMethod();
}
</code></pre></div>
<p dir="auto">And check the log output to see that DI failed to resolve the second parameter ...</p>
<p dir="auto">Any idea why ?</p>
<p dir="auto">Thanks a lot !</p>