4639631357
This reverts commit198ddf5bc5, reversing changes made toa49d2c0b35.
27 lines
673 B
JavaScript
27 lines
673 B
JavaScript
var memberlistApp=angular.module("memberlistApp", ['ngRoute']);
|
|
memberlistApp.config(['$routeProvider', function($routeProvider)
|
|
{
|
|
$routeProvider
|
|
.when('/list',
|
|
{
|
|
templateUrl: 'viewStudents.htm',
|
|
controller: 'ViewStudentsController'
|
|
})
|
|
.when('/add',
|
|
{
|
|
templateUrl: 'addStudent.htm',
|
|
controller: 'AddStudentController'
|
|
})
|
|
.otherwise(
|
|
{
|
|
redirectTo: '/list'
|
|
});
|
|
}]);
|
|
memberlistApp.controller('AddStudentController', function($scope)
|
|
{
|
|
$scope.content="This page will be used to display add student form";
|
|
});
|
|
memberlistApp.controller('ViewStudentsController', function($scope)
|
|
{
|
|
$scope.content="This page will be used to display all the students";
|
|
}); |