SHARE
TWEET

Untitled

a guest Jan 18th, 2016 54 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. angular
  2.     .module('myApp')
  3.     .controller('myController', MyController);
  4.  
  5. MyController.$inject = ['$state'];
  6.  
  7. function MyController($state){
  8.     if ($state.current.name === 'step3' && $sessionStorage != undefined) {
  9.         // use stored data
  10.     } else {
  11.         $state.go('step2');
  12.     }
  13.  
  14. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top