I installed jquery-datatimepicker by adding jquery.datetimepicker.min.css
and jquery.datetimepicker.full.min.js
in angular.json and put them in node_modules/datetimepick
folder
angular.json:
..
"styles": [
"src/styles.scss",
"node_modules/datatables.net-dt/css/jquery.dataTables.css",
"node_modules/datatables.net-responsive-dt/css/responsive.dataTables.css",
"node_modules/bootstrap/dist/css/bootstrap.css",
"node_modules/bootstrap/dist/css/bootstrap-reboot.css",
"node_modules/bootstrap/dist/css/bootstrap-grid.css",
"node_modules/datetimepicker/jquery.datetimepicker.min.css"
],
"scripts": [
"node_modules/jquery/dist/jquery.min.js",
"node_modules/jquery/dist/popper-1.11.0.min.js",
"node_modules/bootstrap/dist/js/bootstrap.js",
"node_modules/dropify/dist/js/dropify.js",
"node_modules/datatables.net/js/jquery.dataTables.js",
"node_modules/datatables.net-responsive/js/dataTables.responsive.js",
"node_modules/datetimepicker/jquery.datetimepicker.full.min.js"
]
But every time when I use npm install
or npm install new-package
, the node_modules/datetimepicker/
folder always got removed and I need to add the folder and files by myself.
Any suggestions could solve this problem?
Angular CLI: 8.3.8
Node: 13.13.0
OS: win32 x64
Angular: 8.2.9
Note: I have tried this solution and I only want to use the external JS/CSS solution.