Advertisement
Guest User

Untitled

a guest
Jun 18th, 2019
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. Test1.config(['$routeProvider', function($routeProvider) {
  2. $routeProvider.
  3. when('/xyz', {
  4. controller:'TestCtrl',
  5. template:' '
  6. }).
  7. when('/pqr', {
  8. controller:'Test2Ctrl',
  9. templateUrl:'/templates/pqr'
  10. });
  11. }]);
  12.  
  13.  
  14. Test1.controller('TestCtrl', [
  15. '$window', '$location',
  16. function(
  17. $window, $location) {
  18. var redirectTo = function() {
  19. window.location.replace('/abc');
  20. }
  21. redirectTo();
  22. }]);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement