Giter VIP home page Giter VIP logo

Comments (2)

bradmartin avatar bradmartin commented on May 27, 2024 1

See if the demo setup helps, it works on both platforms. I know people use it in angular apps and Vue without issue, but sometimes the iOS layout needs a small tweak because of the native APIs being used. Which I ran into this myself because Android works with just about anything you throw at it, not so much for iOS 😄 let me know if the demo helps.

from nativescript-pulltorefresh.

razorsyntax avatar razorsyntax commented on May 27, 2024

Well cool. It definitely works. I was able to run the demo and it works in iOS. Which is great.

In my project, however, if I pull out the reusable ListView from the child component (app-component-with-list), PullToRefresh definitely works... but then I lose the reusability of the component which makes it, well, less Angular. :)

This works in iOS:

<PullToRefresh (refresh)="refreshList($event)" class="refresh-pull">
        <ListView [items]="stuffItems">
                <ng-template *ngIf="condition">
                        <StackLayout>
                            (Stuff for the list)
                        </StackLayout>
                </ng-template>
        </ListView>
</PullToRefresh>

This does not:

<PullToRefresh (refresh)="refreshList($event)" class="refresh-pull">
        <app-component-with-list></app-component-with-list>
</PullToRefresh>

I don't think it makes a difference here but I'm using Angular 5 (html instead of xml, etc). I'll keep playing with this. If I find a solution I'll post it here.

from nativescript-pulltorefresh.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.