title: how to use ng2-datepicker for angular 2 app
body: <p>I want to include ng2-datepicker module in my application. I tried following  as mentioned in the readme file.</p>
  
  <pre><code>npm install ng2-datepicker --save
  </code></pre>
  
  <p>modified systemjs.config.js file to:</p>
  
  <pre><code>.map {
   'ng2-datepicker': 'npm:ng2-datepicker',
         'moment': 'npm:moment/moment.js'
  }
    'ng2-datepicker': {
            format: 'register',
          defaultExtension: 'js'
        }
  </code></pre>
  
  <p>added following line in index.html:</p>
  
  <pre><code>&lt;script src="node_modules/moment/moment.js"&gt;&lt;/script&gt;
  </code></pre>
  
  <p>added following line in app.module.ts</p>
  
  <pre><code>  import { DatePicker } from 'ng2-datepicker/ng2-datepicker';
  declarations: [ AppComponent ,
                  DatePicker]
  </code></pre>
  
  <p>I get following error when I load the application:</p>
  
  <pre><code>Error: ReferenceError: require is not defined
          at eval (http://localhost:3000/node_modules/ng2-datepicker/ng2-datepicker.js:2:24)
          at eval (http://localhost:3000/node_modules/ng2-datepicker/ng2-datepicker.js:7:3)
          at ZoneDelegate.invoke (http://localhost:3000/node_modules/zone.js/dist/zone.js:203:28)     
             Evaluating http://localhost:3000/node_modules/ng2-datepicker/ng2-datepicker.js   
             Error loading http://localhost:3000/node_modules/ng2-datepicker/ng2-datepicker.js as "ng2-datepicker/ng2-datepicker" from http://localhost:3000/app/app.module.js
  </code></pre>