Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9103377
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T01:37:10+00:00 2026-06-17T01:37:10+00:00

I have an angular app with a few routes. on one of them there

  • 0

I have an angular app with a few routes. on one of them there is a jquery plugin (bxslider) that I’m activating on viewContentLoaded.
If I go to a different route and then come back all the jQuery manipulation I did on the rout’s view is cleared and I need to do it over again?

Is there a way to come back to a previous route in its last state (with the query plugin already rendered?

angTestApp.controller('MyRouteCtrl', function($scope, $timeout) {
  $scope.readyFunction = function(e) {
    $timeout(function(){
      $('.slider').bxSlider();
    });
//

 }
$scope.$on('$viewContentLoaded', $scope.readyFunction);
});

Each time a call the route MyRoute the slider is re-rendered is there any way I can get the rendered version if I already been in that URL before and I’m still currently in the app (but in a different route)? (After all its a hash tag view and the browser shouldn’t refresh inside the app)

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T01:37:11+00:00Added an answer on June 17, 2026 at 1:37 am

    If I go to a different route and then come back all the jQuery manipulation I did on the route’s view is cleared and I need to do it over again?

    Yes:

    Every time the current route changes, the included view changes with it according to the configuration of the $route service. — ng-view docs

    .

    Is there a way to come back to a previous route in its last state (with the query plugin already rendered?

    Not with normal ng-view and routing. When you first leave the route with the bxSlider, the DOM elements inside the ng-view are replaced with the DOM elements associated with the new view.

    Maybe when you leave the view with the bxSlider you could “jQuery move” it to some hidden DOM element somewhere on the page (e.g., in some footer area), then move it back when you go back to the route. I think the bottom line is that you’ll have to “cache” it yourself somewhere, and restore it yourself. Wrapping the code and data in an Angular service would probably be best.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

How do I access hidden fields in angular? I have an app, where I
Have deployed numerous report parts which reference the same view however one of them
I have created a factory/service in my angular app. I want to debug it
I am creating a small practice to-do list app with Angular. I have created
I have a simple app that lists contact reports, in it i made a
I currently have a dotcloud app that uses django to serve everything. It works
I have the following function: var app = angular.module('Hubbub-FrontEnd', []); app.controller('DataEntryCtrl', function($scope) { $scope.entryFields
I have an ImageView that you can use to do a one-finger pan, or
I have an app that I would like to create. But I am not
I have an AngularJS app that returns a list of json objects and I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.