I am just picking up Angular 8 and CLI and have created a project as below
ng new my-demo cd my-demo ng g library foo --prefix=my
Now in my library I want to add ngx-bootstrap as the component and will need the DropdownButtonModule so my question is how do I go about installing the npm package for the library?
I tried as suggested in the link Installing NPM packages in angular 6 workspace
But build is failing and unable to identify the DropdownButtonModule in mylibrarymodule.ts file to import the module
Also i need to bundle the dependencies for the library
First Install ngx-bootstrap from npm
Add BsDropdownModule to NgModule imports:
Use it in your HTML file as below.