title: How to set global options for components with angular2?
body: <p>I'm using the component mydatepicker in angular2 <a href="https://github.com/kekeh/mydatepicker" rel="nofollow noreferrer">https://github.com/kekeh/mydatepicker</a>.
  What is the best practice to set a global option for this?
  For example, if you always want the option dateFormat = 'dd/mm/yyyy' I could create my own component with this option and then put the DatePicker in my template using <code>&lt;my-component&gt;</code> instead of <code>&lt;my-datepicker&gt;</code>.
  But I'm sure it's a very bad way to do that.</p>
  
  <p>More in general i should insert the component in the 'myview.html' template using  when myDatePickerOptions is set into 'myview.ts'.
  But I'would like to edit the global options for all the instance of my-date-picker and preserve the chance of editing the options for individual instances.</p>