Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Modal opens but it's not fullscreen #1

Open
RezaRahmati opened this issue May 9, 2017 · 0 comments
Open

Modal opens but it's not fullscreen #1

RezaRahmati opened this issue May 9, 2017 · 0 comments

Comments

@RezaRahmati
Copy link

RezaRahmati commented May 9, 2017

Hey

I tried to use fullscreen-modal, modal opens but it's not full screen.

I am using it in Angular4 project, and this is how it's configured

in .angular-cli.json

                "../node_modules/jquery/dist/jquery.js",
                "../node_modules/bootstrap/dist/js/bootstrap.js",
                "../node_modules/bootstrap-modal-fullscreen/dist/bs-modal-fullscreen.js",

I checked script is included

Also when I call fullscreen method I get error, that it seems it can't find the method

This is my code inside component

  @ViewChild('itemModal') itemModal: any;

addItem() {
    this.itemModal.fullscreen();
  }

and this is my component

<div bsModal [config]="{ show: false, backdrop: 'static', keyboard: true }" #itemModal="bs-modal" class="modal fade modal-fullscreen" tabindex="-1"
    role="dialog" aria-hidden="true">
    <div class="modal-dialog modal-sm itemModal">

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant