This tiny repo is done according to angular2 quickstart guide just to show how simple it is to use angular2 with 3rd party ng2-* modules like this one: https://github.com/valor-software/ng2-bootstrap
Clone this repo
npm i
and npm start
and you are ready!
- Install and add
map
formoment.js
in system.js config
'moment': 'node_modules/moment/moment.js'
- Import
ng2-bootstrap
inindex.html
before starting application
<script src="node_modules/ng2-bootstrap/bundles/ng2-bootstrap.min.js"></script>
- Use new forms
import {provideForms, disableDeprecatedForms} from '@angular/forms';
bootstrap(AppComponent, [disableDeprecatedForms(), provideForms()]);
Good luck with angular2 hacking!