How it works...
ng-bootstrap is a project that provides ready-made Angular component wrappers for Bootstrap's components. It solves all the data binding and event-oriented aspects associated with using Bootstrap's vanilla jQuery components, while still looking and functioning identically. However, ng-bootstrap only provides the Angular component wrappers for generating Bootstrap components and does not import any Sass for styling components; we still have to do that ourselves.
The ngb-accordion and ngb-panel Angular components are adaptations of Bootstrap's collapsible group and collapsible card components, specifically tailored for Angular. The activeIds attribute on the component tells the ngb-accordion component which ngb-panel should ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access