title: What happens when there are two classes, one decorator/ one class two decorators in a file in Angular 2?
body: <pre><code>@Component({
     selector: 'my-cmp',
     template: '&lt;div&gt;Hello World!&lt;/div&gt;'
  }) // here component metadata
  
  export class MyComponent {
  
  }
  </code></pre>
  
  <p>So, the above is my actual component file. If I have another class</p>
  
  <pre><code>@Component({
     selector: 'my-cmp',
     template: '&lt;div&gt;Hello World!&lt;/div&gt;'
  }) // here component metadata
  
  export class MyComponent {
  
  }
  
  export class MyAnotherComponent {
  
  }
  </code></pre>
  
  <p>and</p>
  
  <pre><code>@Component({
     selector: 'my-cmp',
     template: '&lt;div&gt;Hello World!&lt;/div&gt;'
  }) // here component metadata
  @Component({
     selector: 'my-cmpnt',
     template: '&lt;div&gt;Hello Something!&lt;/div&gt;'
  }) // here component metadata
  
  export class MyComponent {
  
  }
  </code></pre>
  
  <p>Now, Do I get any error? What happens?</p>