sourcemap-explorer shows extra bits and pieces from @ng-bootstrap -
i have been playing around tool called sourcemap-explorer, , noticed when import ngbdateparserformatter
, ngbdatepickermodule
@ng-bootstrap/ng-bootstrap
, sourcemap-explorer shows getting accordion, carousel, tabset, popover, tooltip, etc. thought idea of importing individual module avoid grabbing whole package. has else run this?
edit 1: i'm importing:
import { ngbdateparserformatter, ngbdatepickermodule } '@ng-bootstrap/ng-bootstrap';
this use it:
<input class="form-control" placeholder="mm/dd/yyyy" formcontrolname="effectivedate" ngbdatepicker #sd="ngbdatepicker"> <div class="input-group-addon" (click)="sd.toggle()"> <i class="fa fa-calendar"></i> </div>
depending on packager / bundler use, might end more code needed if import catch-all module path (@ng-bootstrap/ng-bootstrap
).
to bump chances of getting used code (the final result will depend on bundler used) try importing datepicker-specific module path: import { ngbdateparserformatter, ngbdatepickermodule } '@ng-bootstrap/ng-bootstrap/datepicker/datepicker.module';
the above should work fine angular-cli.
Comments
Post a Comment