JavaScript How do I get the back button to go back multiple pages in AngularJS back button back button,back button back home center apk,

I am currently working on an application and I need the back button to go back multiple pages. I am familiar with the history.back function as shown below.

//go back to the last view
$rootScope.goBack = function(){
    history.back();
  }

However, this only goes back one page. Is there anyway for the history to go back further than one step? If so, how can I implement this?

Thank you!

EDIT: I figured I would also share that you can you use the back() feature not only in the html but also in your controller by using $rootScope.back(-2);

Answer:1

I've spent quite a while trying to connect Socket.IO-Client to a server running on Sails.js framework. The client is basically a simple JavaScript application running with Node.js on Raspberry Pi. ...

I've spent quite a while trying to connect Socket.IO-Client to a server running on Sails.js framework. The client is basically a simple JavaScript application running with Node.js on Raspberry Pi. ...

  1. connect socket client
  2. connect socket client to server
  3. connect socket client c++
  4. connect client socket programming
  5. connect socket io client
  6. java connect socket client
  7. socket connect tutorial
  8. python socket connect client
  9. android socket connect client
  10. network socket connect client
  11. websocket client connect
  12. socket client connect to room
  13. socket client connect timeout
  14. socket client connect example
  15. connect to socket.io client side

I'm using Gulp to run Webpack because some things that are trivial with Gulp are messy with Webpack, such as multiple outputs. However, babel-loader doesn't seem to be doing anything. When I have JSX ...

I'm using Gulp to run Webpack because some things that are trivial with Gulp are messy with Webpack, such as multiple outputs. However, babel-loader doesn't seem to be doing anything. When I have JSX ...

  1. gulp using webpack
  2. using gulp and webpack together

Here is the code: $q.all($q.when(3), $q.when(5)).then(function (values) { console.log(values); }); The output is the following: {"$$state":{"status":1,"value":3}} The manual states that: ...

Here is the code: $q.all($q.when(3), $q.when(5)).then(function (values) { console.log(values); }); The output is the following: {"$$state":{"status":1,"value":3}} The manual states that: ...

I'm having problems serving mp3 files in NodeJS. var filestream = fs.createReadStream('file.mp3'); filestream.on('open', function() { var stats = fs.statSync('file.mp3'); var fileSizeInBytes = ...

I'm having problems serving mp3 files in NodeJS. var filestream = fs.createReadStream('file.mp3'); filestream.on('open', function() { var stats = fs.statSync('file.mp3'); var fileSizeInBytes = ...

  1. serving static files nodejs
  2. nodejs serving files
  3. serve static files nodejs