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

Page not responding on dynamic data load #522

Open
taychris opened this issue Sep 16, 2020 · 4 comments
Open

Page not responding on dynamic data load #522

taychris opened this issue Sep 16, 2020 · 4 comments

Comments

@taychris
Copy link

taychris commented Sep 16, 2020

Hello people,

I am using GlideJS in my angular app. Everything works well while I am using hard coded data for the slider, but once I use the *ngFor for loop, for the dynamic data, the page wont even load and I get a notification from chrome, that the page is not responding.

What is the issue here?

This does not work:

<div class="glide">
      <div data-glide-el="track" class="glide__track">
        <ul class="glide__slides carousel-container">
          <li *ngFor="let project of projects" class="glide__slide">
            <a
              target="_blank"
              rel="noopener noreferrer"
              href="{{ project.url }}"
            >
              <img src="{{ project.img }}" alt="" />
              <h3>{{ project.title }}</h3>
              <p>
                {{ project.tech }}
              </p>
            </a>
          </li>
        </ul>
      </div>
     ....

And this does work:

<div class="glide">
    <div data-glide-el="track" class="glide__track">
      <ul class="glide__slides carousel-container">
        <li class="glide__slide">1</li>
        <li class="glide__slide">2</li>
        <li class="glide__slide">3</li>
      </ul>
    </div>
    ....
@taychris taychris reopened this Sep 16, 2020
@mustafakapur
Copy link

I have same problem here . If you have found any solution please let me know. I have stuck here.

@taychris
Copy link
Author

Since I haven't received any support on this issue, nor have I found anything about this issue anywhere else, I have switched to SwiperJS.

@mustafakapur
Copy link

Okay. Does SwiperJs works proper in Angular 8 or 9

@bartuaf
Copy link

bartuaf commented Jan 9, 2021

anything here? I have the same problem :)

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

3 participants