January 28, 2023


The complete guide to the beginners as well as to the experienced Web Developers

AngularJS Routes

If you want to navigate to different pages but you also want the application to be a Single Page Website, without reloading by AngularJS Routes (ngRoute module).
Your website container need to put ng-view, Create view folder and create three files
Directory structure like
Put separate content in each HTML page
Create file index.html and as per below
when you define application then you have to mention by
var app = angular.module(“myApp”, [‘ngRoute’]);