Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Test1.config(['$routeProvider', function($routeProvider) {
- $routeProvider.
- when('/xyz', {
- controller:'TestCtrl',
- template:' '
- }).
- when('/pqr', {
- controller:'Test2Ctrl',
- templateUrl:'/templates/pqr'
- });
- }]);
- Test1.controller('TestCtrl', [
- '$window', '$location',
- function(
- $window, $location) {
- var redirectTo = function() {
- window.location.replace('/abc');
- }
- redirectTo();
- }]);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement