Redirect page after delay using Angularjs

Redirect page after delay using Angularjs

In this Post We Will Explain About is Redirect page after delay using Angularjs With Example and Demo.Welcome on – Examples, The best For Learn web development Tutorials,Demo with Example! Hi Dear Friends here u can know to How to apply delay on AngularJS Example

In this post we will show you Best way to implement redirect page after 5 seconds angularjs, hear for Redirect to another page after delay 5 seconds using angular with Download .we will give you demo,Source Code and examples for implement Step By Step Good Luck!.

Also Read :   AngularJs interview questions and answers for freshers

How to auto redirect after X seconds in AngularJS?

Fisrt of all the Load a page and then Wait for X(5) seconds and then Being automatically redirected to another page after these X seconds.

Syntex for the AngularJS Timeout Service ($timeout)

liveApp.controller('liveCtrl', ['$scope', '$state', '$timeout',
                                function($scope, $state, $timeout) {

    $timeout(function() {
      $state.go('Your State Name');
      }, 3000);


javascript code

It Is work also using angularjs $location instead of $state!

liveApp.controller('liveCtrl', function($scope, $location, $timeout) {

    $timeout(function() {
	//redirect home
      }, 3000);


AngularJS $timeout Service Example

Following script is the full example of using angular $timeout service in angularjs web applications.

Also Read :   Angular 5 Routing And Navigation Example

<!DOCTYPE html>
<title>Simple AngularJs $timeout Service with Example</title>
<script src=""></script>
<script type="text/javascript">
var liveApp = angular.module('liveApp', []);
liveApp.controller('livectrl', function ($scope, $timeout) {
$timeout(function () {
$scope.message = "Welcome to";
}, 3000);
<div ng-app="liveApp" ng-controller="livectrl">
<p>Simple AngularJS $timeout Function Example</p>

You are Most welcome in my youtube Channel Please subscribe my channel. and give me FeedBack.
More Details……
Angularjs Example


I hope you have Got What is Redirect to another page after delay 5 seconds using angular And how it works.I would Like to have FeedBack From My Blog( readers.Your Valuable FeedBack,Any Question,or any Comments about This Article( Are Most Always Welcome.