title: Time ago pipe using Angular
body: <p>I'm trying to set time-ago-pipe in my application, I tried this example: <a href="https://www.npmjs.com/package/time-ago-pipe" rel="nofollow noreferrer">https://www.npmjs.com/package/time-ago-pipe</a></p>
  
  <p>But it works just with AngularJS, I'm using 4.</p>
  
  <p>this is the error when I put TimeAgoPipe in declaration:</p>
  
  <pre><code>Error encountered resolving symbol values statically. Could not resolve ./time-ago-pipe;
  </code></pre>
  
  <p>app.modules</p>
  
  <pre><code>import {TimeAgoPipe} from 'time-ago-pipe';
  
  @NgModule({
      imports: [.......]
  .
  .
  .
  
   declarations: [
          AppComponent,
          TimeAgoPipe
      ],
  </code></pre>
  
  <p>package.json</p>
  
  <pre><code> "dependencies": {
      "time-ago-pipe":"^1.2.1"
  </code></pre>
  
  <p>time.component.html</p>
  
  <pre><code>  &lt;div class="author-date"&gt;
        &lt;div class="post__date"&gt;
           &lt;time class="timeago" datetime="2004-07-24T18:18"&gt;
              {{info.time | timeAgo }}
           &lt;/time&gt;
        &lt;/div&gt;
    &lt;/div&gt;
  </code></pre>
  
  <p>Note: my info.time in console is (1514112341)</p>