i am new to angular js .i know about controllers,which uploads data to view.
a sample controller with my knowledge,,
angular.module('marksTotal',[]).controller('totalMarks',function($scope){
$scope.totMarks=$scope.sub1+$scope.sub2+$scope.sub3+$scope4.sub;
$scope.totMarks+=$scope.sub5;
$scope.avgMarks=$scope.totMarks/5;
}
i have a doubt how to share data b/w different controllers in the same page & b/w different pages.
could you please clarify my doubt
thanks. ravi