Tuesday, April 21, 2015

AngularJs Controller Module

mainApp.controller("studentController", function($scope) {

$scope.student = {
firstName: "Mahesh",
lastName: "Parashar",
fees:500,
subjects:[
{name:'Physics',marks:70},
{name:'Chemistry',marks:80},
{name:'Math',marks:65},
{name:'English',marks:75},
{name:'Hindi',marks:67} 11. MODULES
Angular JS Tutorial
40
],
fullName: function() {
var studentObject;
studentObject = $scope.student;
return studentObject.firstName + " " + studentObject.lastName;
}
};
});

No comments:

Post a Comment