ng-bootstrap

Why is the Bootstrap 4 Navbar always collapsed? [duplicate]

对着背影说爱祢 提交于 2019-11-26 16:42:53
问题 This question already has an answer here: Bootstrap 4 toggleable navbar 1 answer I updated to the v1.0-beta of ng-bootstrap. Now the navbar is always collaped. When I click on the hamburger to toggle the menu, it opens, but displays the contents vertically rather than horizontally. I've included the code for the nav below. It's the same as it before. At this point I can't tease out if the issue lies with ng-bootstrap, bootstrap 4 or a combination thereof. My ideal outcome is for the menu to

Dynamic template reference variable inside ngFor (Angular 2)

自闭症网瘾萝莉.ら 提交于 2019-11-26 15:26:41
How to declare a dynamic template reference variable inside a ngFor element? I want to use the popover component from ng-bootstrap, the popover code (with Html binding) is as shown: <ng-template #popContent>Hello, <b>{{name}}</b>!</ng-template> <button type="button" class="btn btn-secondary" [ngbPopover]="popContent" popoverTitle="Fancy content"> I've got markup and bindings in my popover! </button> How can I wrap those elements inside ngFor ? <div *ngFor="let member of members"> <!-- how to declare the '????' --> <ng-template #????>Hello, <b>{{member.name}}</b>!</ng-template> <button type=

Dynamic template reference variable inside ngFor (Angular 2)

孤人 提交于 2019-11-26 03:58:55
问题 How to declare a dynamic template reference variable inside a ngFor element? I want to use the popover component from ng-bootstrap, the popover code (with Html binding) is as shown: <ng-template #popContent>Hello, <b>{{name}}</b>!</ng-template> <button type=\"button\" class=\"btn btn-secondary\" [ngbPopover]=\"popContent\" popoverTitle=\"Fancy content\"> I\'ve got markup and bindings in my popover! </button> How can I wrap those elements inside ngFor ? <div *ngFor=\"let member of members\"> <