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 best solutions below
Related Questions in ANGULARJS
- Angular Show All When No Filter Is Supplied
- Using pagination on a table in AngularJS
- State with different subviews
- Getting and passing MVC Model data to AngularJS controller
- Implementing prerender.io middleware in sails.js
- Token based authorization in nodejs/ExpressJs and Angular(Single Page Application)
- AngularJS, Google App Engine and URLrewrite
- send data from table to another page into forms
- How to write tests for classes with inheritance
- angularJS sending OPTIONS instead of POST
- Receiving POST from external application in AngularJS
- Metaprogramming AngularJS Filters
- Reload List after Closing Modal
- Why is my angularjs site not completely crawlable?
- Why is separation of JavaScript and HTML a good practice?
Related Questions in ANGULAR-UI-ROUTER
- State with different subviews
- how to get event when user scroll to top in angular js?
- How to define optional parameter using UI-Router without trailing slash as well?
- Ui-router URL changes, nested view not loading
- AngularJS: Routes with Multiple resolves using Services are not firing
- Angular Ui.router $state template ng-models are $rootScope
- How to open specific ion-item in a ion-list
- ui-router ui-grid Typeerror undefined
- how to display sorted data from complete object in angular js?
- Flask and Angular Ui-Router
- The href doesn't refresh when the ui-sref changes
- How to run jquery when I'm using angularjs partials?
- Angularjs - New layout file in UI Router
- UI-Router Filter Json Data
- Getting the name of a state in its `onEnter` hook
Related Questions in ANGULAR-UI-BOOTSTRAP
- Reload List after Closing Modal
- UI.Bootstrap Angular Typeahead and Firebase Array
- Angular UI-Bootstrap Typeahead with object literal structure
- Bootstrap dropdown not working with key board events
- AngularJS date validation (formats)
- How to create a confirmation Dialog with Angular JS and UI Bootstrap
- extending angular-ui-bootstrap typeahead module
- Combining of angular-ui-bootstrap radio button and angular-translate directives
- Unknown provider: $modalInstanceProvider <- $modalInstance in Angularjs modal
- UI Bootstrap dropdown is adding HTML I didn't write
- Datepicker in Angular ui modal not opening
- Angular UI Bootstrap Timepicker - value assignment issue with 24hr times
- Stop Angular UI bootstrap dropdown from closing in certain cases?
- Angular js - Using UI Bootstrap's Tab library only
- AngularJs - Adding Custom class on UI-Bootstrap's Tab
Related Questions in ANGULAR-UI-BOOTSTRAP-TAB
- Why do I get a nonassign error in the angular-bootstrap tabset?
- (Mobile View) How to make UI tabs heading to work as a drop down
- angularjs: how to go back to previous page from a nested view when clicking back button of browser?
- angular ui bootstrap tabs component: how to get the content of a tab when the tab is active not clicked
- Is there any way to assign ng-controller dynamically when iterate over an collection of objects?
- Angular 2 ng-bootstrap,NgbTabset Error:Uncaught (in promise): TypeError: Cannot read property 'templateRef' of undefined
- Using angular-ui-bootstrap in Angular2
- AngularJS, UI Bootstrap's Tabs and Datatables
- Pass form to directive that lives outside of the form
- Select active tab in uib-tabset ui-bootstrap angularjs
- Angular UI Bootstrap tabset with ng-repeat
- Choose the template of UI-TAB
- Angular JS Datatables row click event add dynamic AngularUI Tab
- Angularjs - Horizontal scroll upon button click
- How to change height width of uib carousel?
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)
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?
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