title: Please add a @Pipe/@Directive/@Component annotation in Angular 6
body: <p>In Angular6, I have an error  <strong>Please add a @Pipe/@Directive/@Component annotation</strong></p>
  
  <p>I used angular CLI version: 6.1.4
  angular version:6.1.3
  Node:10.9.0
  NPM: 6.2.0 </p>
  
  <p>When I run ng serve in Terminal its compiled but in browser <strong>localhost:4200</strong> try its shown error. 
  error display in Below error.</p>
  
  <p>Output
  <a href="https://i.stack.imgur.com/hWpNL.png" rel="nofollow noreferrer">enter image description here</a></p>