AngularJS Routing Example - ablealias/AngularJS-1.x GitHub Wiki

var angularFormsApp = angular.module('angularFormsApp',["ngRoute"]);
angularFormsApp.config(function ($routeProvider){
	$routeProvider
		.when("/home",{
			templateUrl: "app/Home.html",
			controller: "HomeController"
		})
		.when("/newEmployeeForm",{
			templateUrl: "app/EmployeeForm/efTemplate.html",
			controller: "efController"			
		})
		.otherwise({
			redirectTo: "/home"
		});
});