student view changes in study material

This commit is contained in:
gandhimathi 2018-03-07 12:48:49 +05:30
parent 6a29e6a3ef
commit 872033d6f9

View File

@ -488,7 +488,7 @@ app.controller('studentModalDemoCtrl', ["$scope", "$modal", "$log", "API_POINTS"
};
$scope.open1 = function (values) {
$scope.open1 = function (values,type) {
var modalInstance1 = $modal.open({
templateUrl: 'assets/views/student/studentPaymentModal.html',
@ -496,7 +496,12 @@ app.controller('studentModalDemoCtrl', ["$scope", "$modal", "$log", "API_POINTS"
// size: size,
resolve: {
items1: function () {
return values;
var myvalues =
{
"values":values,
"type":type
};
return myvalues;
}
}
});
@ -533,7 +538,8 @@ app.controller('ModalInstanceCtrl', ["$scope", "$modalInstance", "items","WordsS
}]);
app.controller('ModalInstanceCtrl1', ["$scope", "$modalInstance", "items1","WordsService", function ($scope, $modalInstance, items1,WordsService) {
$scope.items1 = items1;
$scope.items1 = items1.values;
$scope.selectedtype = items1.type;
$scope.ok = function () {
$modalInstance.close($scope.selected.item);