You are on page 1of 6

Assignment – 5 Single Page Application

Name: kishan Mishra


Rollno:68

Q1- Create a Sigle Page Web Application with HTML, Bootstrap, CSS Template with at least 5
different routing.

Code:
<!-- Footer -->
<footer>
<!-- Add any other footer content you want -->
<p>© Copyright 2023. All Rights Reserved.</p>
</footer>

<script>
var app = angular.module('myApp', ['ngRoute']);
app.config(function($routeProvider) {
$routeProvider
.when('/home', {
template : "<h1>Home Page</h1>"
})
.when('/blog', {
template : "<h1>Blog Page</h1>"
})
.when('/about', {
template : "<h1>About Page</h1>"
})
.when('/Admission', {
template : "<h1>Admission Page</h1>"
})
.when('/Contact', {
template : "<h1>Contact Page</h1>"
})
.otherwise({redirectTo: '/home'});
});
</script>
</body>
</html>

Output:

You might also like