angular2-datepicker icon indicating copy to clipboard operation
angular2-datepicker copied to clipboard

Does not work out of the box

Open drewjocham opened this issue 8 years ago • 1 comments

I looked at the following site https://www.npmjs.com/package/angular2-datepicker and it did not work. I did the following:

Added import {MyDatePicker} from 'MyDatePicker/src/index'; to my @NgModule({ than <my-date-picker [options]="myDatePickerOptions" (dateChanged)="onDateChanged($event)" [selDate]="selectedDate"></my-date-picker> and it says unknown HTML tag

In the console it says:

Unhandled Promise rejection: Cannot find module "MyDatePicker/src/index" ; Zone: angular ; Task: Promise.then ; Value: ZoneAwareError Error: Cannot find module "MyDatePicker/src/index"

drewjocham avatar Feb 01 '17 16:02 drewjocham

I'm not sure of the proper way to handle this, but I was able to resolve it by linking to the actual module.ts file under the node_modules folder. It was something along the lines of "path to main folder/node_modules/mydatepicker/src/my-date-picker

krislefeber avatar Feb 21 '17 00:02 krislefeber