ngx-bootstrap icon indicating copy to clipboard operation
ngx-bootstrap copied to clipboard

*ngif select=footer does not work

Open borgotecnologia opened this issue 10 years ago • 2 comments

Hi.

This is my Set:

base-modal.component.html:

`<div bsModal #lgModal="bs-modal" (onHide)="hideBackdrop($event)" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="myLargeModalLabel" aria-hidden="true">

`

base-modal.component.ts:

`import {Component, ViewChild, OnInit, Input, Output, EventEmitter, AfterViewInit, ElementRef, ContentChild } from '@angular/core'; import {CORE_DIRECTIVES} from '@angular/common'; import {MODAL_DIRECTIVES, BS_VIEW_PROVIDERS} from 'ng2-bootstrap';

@Component({ selector: "base-modal", directives: [MODAL_DIRECTIVES, CORE_DIRECTIVES], viewProviders: [BS_VIEW_PROVIDERS], templateUrl: "app/shared/modais/base-modal.component.html", exportAs: 'modal' })

export class BaseModalComponent { @Input() title: string; @Input() size: string @Output() public aoFechar: EventEmitter = new EventEmitter();

@ViewChild('lgModal') lgModal: any; show() { this.lgModal.show(); }

private hideBotton(valor: boolean = false) { this.lgModal.hide(); }

hideBackdrop(modal: any): void { this.aoFechar.emit(null); }

hasFooter(valor: any): boolean { return true; } } ` My problem is:

When I try to make *ngIf to hide footer, I can't, because it did not find footer selected

What I shall do to hide footer in ng2-bootstrap?

borgotecnologia avatar Jul 20 '16 18:07 borgotecnologia

footer? like modal footer? create a component which has you modal template and expose functionality you need

valorkin avatar Jul 21 '16 09:07 valorkin

join https://www.hamsterpad.com/chat/ng2 and ask more question if you like

valorkin avatar Jul 21 '16 09:07 valorkin