TagsScript are removed from the templates. You need to use other means to load the script.
Something like this might work (not verified)
@Component({
selector: 'some-comp',
template: `<div #datetimepicker></div>`
})
class SomeComp {
@ViewChild('datetimepicker') dateTimePicker:ElementRef;
ngAfterViewInit() {
$(this.dateTimePicker.nativeElement).datetimepicker({format: 'LT'});
}
}
source
share