I have two pages, index.html and tabs.html. tabs.html is a nested structure, it has a tabs component and every tab is bind to a state(tab1, tab2, tab3). When changing from index.html to tabs.html, the state change path will be: index -> tabs -> tab1. When you click other tabs, the state change path maybe: index -> tabs -> tab1 -> tab2. Now if you click the back button of the browser, you will just go back from tab2 to tab1, that means you are still in tabs.html. Now my question is, is there any good method to realize when clicking the back button of browser, I can go back to index.html not just the previous state?
angularjs: how to go back to previous page from a nested view when clicking back button of browser?
1.6k views Asked by ahwyX100 At
1
There are 1 answers
Related Questions in ANGULARJS
- How to automatically change path in angular when scrolling
- Error two clicks to be able to login Angular 16
- Passing an array of objects through the $http.post method in angular JS does not work
- Understanding how to apply Angular Signals from beginning on an existing service
- provider duplicate while compiling a Cordova application for the Android platform
- How can I use angularjs $parse service in Angular?
- Width of custom headers in ag-grid (angular) doesn't match with column's width
- Issues with Katex/ngx-markdown Rendering in Angular 16
- How to make Angular SSR wait for async operations to finish that are initiated in ngOnInit?
- I want to install @angular/google-maps npm Package in angular 16.2.12 but "npm install @angular/google-maps" this is not working/ tell me other query
- Angular 17 standalone application integrate CKEditor 5 -- Error: window is not defined
- Why is $scope >= 0 showing true in interpolation while empty in controller?
- The XMLHttpRequest compatibility library was not found
- Making Gantt Chart Column Labels More Readable
- Pass key-value pairs of object as individual arguments to component in Angular
Related Questions in ANGULAR-UI-ROUTER
- When I navigate to the URL'http://localhost:4200/', it redirects me back
- Angular title routing translation
- Angular ngOnInit doesnt get triggered when i refresh the page
- Nested routes with param and router refresh process
- Bundle size after migrating to all standalone and implementing lazy loading
- Named Router Outlet- I need to active the both multiple outlets Using angularv17.0^.0^(main outlet + 2 named Outlets)
- Implement routing with steps component in a dynamic dialog priemng
- Preload all components when lazy loading standalone components for routing
- Angular constant errors
- How do I filter out a value returned from a GET method?
- Angular material design <mat-step> data not showing
- Angular upgrade from 9 to 10 return errors
- The problem of navbar and side bar and routing
- How do I add Swiper.js to an Angular project without bugs
- CanActivateFn get hit but same appcomponent get hit too. standalone. angular
Related Questions in ANGULAR-UI-BOOTSTRAP
- Angular.js directive does not work for uib-tooltip
- How to use Classname in react to give Bootstrap class and CSS file style in same "Classname" field
- Angular 9 - Checkbox value updates inside component but does not get checked in the UI
- Upgrading angular from v15 to v16
- space between my input bars, it just jumbos them all together which is something i dont want
- My html menu inside header tag is not properly hovering in angular, kindly guide me
- Angular API call keeps fetching every second
- Accessibility Error in Axe DevTool: <ul> and <ol> must only directly contain <li>, <script>, or <template> elements with <uib-tabset> and <uib-tab>
- Bootstrap modal not working in Angular application
- Unable to get data from the form in Bootstrap 5 with Angular
- Bootstrap CSS compatibility with ngTable
- Modal window doesn't appear
- Angular Datepicker are not work proper move on page scroll
- ngxTypeahead not open list dropdwon angular 15
- In angular trying to open component A bootstrap modal from component C template they have not any parent-child relationship
Related Questions in ANGULAR-UI-BOOTSTRAP-TAB
- Moving from ui-Bootstrap to ng-Boostrap
- How to avoid the default a href added by angular-ui-bootstrap in uib-tabset
- Navigate between bootstrap dynamics tabs in angularjs application
- How to achieve these bootstrap tabs
- How to apply the multiple condition angular ui-tab to add active class?
- Select active tab in uib-tabset ui-bootstrap angularjs
- Is there any way to assign ng-controller dynamically when iterate over an collection of objects?
- Pass form to directive that lives outside of the form
- angularjs uib-tabset not working under ui-bootstrap 2.5.0
- How can I make the tab in an AngularJS uib-tabset linkable?
- AngularJS, UI Bootstrap's Tabs and Datatables
- Using angular-ui-bootstrap in Angular2
- Angular 2 ng-bootstrap,NgbTabset Error:Uncaught (in promise): TypeError: Cannot read property 'templateRef' of undefined
- How do I render svg icons in a svg component?
- ng-Click affects to different controller
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Because back operation in browser works with URLs, you can remove url property in state definition for tab1, tab2 and tab3 states, and you have to link them just with
ui-sref.Now if you back in browser you will go to
index.html