title: Ember required component arguments
body: <p>How can I require a parameter in an ember component.</p>
  <p>E.g.:</p>
  <pre><code>class MyComponent extends Component {
    get my_value() {
      return this.args.my_argument + 1
    }
  }
  </code></pre>
  <p>I want the component to throw an error when the component is instantiated and not when the function is called.</p>
  <p>The only way I can think of is like this:</p>
  <pre><code>class MyComponent extends Component {
    constructor(owner, args) {
      super(owner, args)
      assert(!!args.my_argument, &quot;MyComponent requires my_argument&quot;)
    }
    ...
  }
  </code></pre>
  <p>This however seems a bit tedious and does not look right :/</p>
  <p>EDIT:</p>
  <p>It would be even better if I could specify the type of the argument.</p>