title: Inheritance of Angular 5 components with overriding the decorator properties
body: <p>In Angular 2/4 we could create custom decorator for extending parent component. Actual overriding of the decorator properties was handled as needed in the custom decorator. To get parent annotations we used:</p>
  
  <p><code>let parentAnnotations = Reflect.getMetadata('annotations', parentTarget);</code></p>
  
  <p>After update to Angular 5 this doesn't work anymore. Regarding <a href="https://stackoverflow.com/a/47280239/854805">this</a>
   answer we could use:</p>
  
  <p><code>target['__annotations__'][0]</code> for getting parent component annotations. </p>
  
  <p>In order to set annotations in the current component in Angular 2/4 we used:</p>
  
  <p><code>let metadata = new Component(annotation);
  Reflect.defineMetadata('annotations', [ metadata ], target);</code></p>
  
  <p>How can set current component annotations in Angular 5?</p>