hi, i create Entity for entry cities and write vm.getCities = function () { vm.loading = true; cityService.getCities({ filter: vm.filterText }).then(function (result) { vm.cityGridOptions.data = result.data.items; }).finally(function () { vm.loading = false; }); }; such as role form!
But i have error "angular.js:14700 TypeError: vm.getcities is not a function" in Clint side! please help me!. Error.zip
7 Answer(s)
-
0
Hi @ramezani583,
Your code seems correct. Could it be a caching issue ? Can you delete cache of your browser and try again ?
-
0
No, I deleted cache of my browser and try again, but problem was not resolved!
-
0
Don't find a solution for my problem?
-
0
Did you add entity city to DbContext?
-
0
-
0
It's vm.getCities(); not vm.getcities();
-
0
Yessssssssssssssssssssssssssssssssssssssssssssssssssssssssss. thank you.