Coder Social home page Coder Social logo

@ngIdle not working if we refresh the page manually if am at localhost:8000/home and my @ngIdle logic on localhost:8000/login . about ng2-idle HOT 4 OPEN

moribvndvs avatar moribvndvs commented on July 21, 2024
@ngIdle not working if we refresh the page manually if am at localhost:8000/home and my @ngIdle logic on localhost:8000/login .

from ng2-idle.

Comments (4)

adamjohnston151 avatar adamjohnston151 commented on July 21, 2024

Just for clarification, are you saying your ngIdle does not fire if you are on a different page than the page that contains your logic?

from ng2-idle.

vd-nagarro avatar vd-nagarro commented on July 21, 2024

I am also facing this issue .. when navigating to other page it is not calling the interrupts for that even though i have setting DEFAULT_INTERRUPTSOURCES again but it is not working. Please comment @hackedbychinese @adamjohnston151 @gitter-badger @hackedbychinese

from ng2-idle.

moribvndvs avatar moribvndvs commented on July 21, 2024

@vd-nagarro it's really hard to comment on this issue without minimal code to reproduce.

One issue that occurs regularly is that people add the idle code to a specific view, when it needs to happen globally for the application. In other words, they put it in a view or component, and when the user navigates away from the view or component, the idle detection goes away.

from ng2-idle.

vd-nagarro avatar vd-nagarro commented on July 21, 2024

@hackedbychinese - Is there any way to let the idle detection remains the same across the whole application as i am using this in our app component which i think make it available through the application and the idle detection interrupts should work properly there too. .. i have use this inside the app.component on its ngOnInit() .. Is i am doing it right?

from ng2-idle.

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.