I write this code, but not work!!
please help me.
Controller:
(function () {
appModule.controller('education.views.students.createOrEditModal', [
'$scope', '$window','$uibModalInstance', 'abp.services.app.student', 'studentId', 'abp.services.app.city', 'uiGridConstants',
function ($scope, $window, $uibModalInstance, studentService, studentId, cityService, uiGridConstants) {
var vm = this;
vm.saving = false;
vm.student = null;
vm.selectedCity = null;
vm.Cities = [];
vm.GetValue = function () {
var CityId = vm.selectedCity.Id;
var CityName = vm.selectedCity.Name;
//console.log(CityId, CityName);
cityService.getCities({
}).then(function (result) {
vm.Cities = result.data;
//console.log(vm.Cities);
});
};
cshtml:
@*selected Value is : {{selectedCity}}*@
1 Reply
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Nilesh PatilPosted Nov 2, 2017, 12:09 AM