Our custom angular datepicker based on angular-ui/bootstrap
$ npm install --save neworbit/bootstrap-datepicker#v2.0.0
$ bower install --save neworbit/bootstrap-datepicker#^2
import bootstrapDatepicker from 'bootstrap-datepicker';
const app = angular.module('app', [
bootstrapDatepicker
]);
<script src="bower_components/angular/angular.js"></script>
<script src="bower_components/bootstrap-datepicker/dist/datePicker.js"></script>
<script>
var app = angular.module('app', [
'ui.bootstrap'
]);
</script>
- In your core scss file:
@import "~bootstrap-datepicker/dist/style.css";
<link href="bower_components/bootstrap-datepicker/dist/style.css" rel="stylesheet" type="text/css">
To override colours, see the comments in src/datepicker.scss
- update version on
readme.md
$ npm version --force major | minor | patch
$ git push --follow-tags
MIT © NewOrbit