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

Popular posts from this blog

node.js - Node js - Trying to send POST request, but it is not loading javascript content -

javascript - Replicate keyboard event with html button -

javascript - Web audio api 5.1 surround example not working in firefox -