Skip to content

Latest commit

 

History

History
30 lines (22 loc) · 843 Bytes

README.md

File metadata and controls

30 lines (22 loc) · 843 Bytes

angular2-quickstart

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

Quick start

Clone this repo npm i and npm start and you are ready!

Couple of things you should pay attention

  1. Install and add map for moment.js in system.js config
'moment': 'node_modules/moment/moment.js'
  1. Import ng2-bootstrap in index.html before starting application
<script src="node_modules/ng2-bootstrap/bundles/ng2-bootstrap.min.js"></script>
  1. Use new forms
import {provideForms, disableDeprecatedForms} from '@angular/forms';

bootstrap(AppComponent, [disableDeprecatedForms(), provideForms()]);

Good luck with angular2 hacking!