First of all DONT USE JQUERY WITH ANGULAR, instead angular controller to manipulate the logic.
This can be done in few ways, here is one of them.
If you have a field with id
4c609cf1bbb6c5080865df9cfc1fb649_mylogs_details_customer
then use ng-model
on it.
Example using ng-model:
<input type="text" id="4c609cf1bbb6c5080865df9cfc1fb649_mylogs_details_customer" ng-model="customer_details">
Controller:
app.controller('myCtrl', function($scope) {
$scope.openlogsEservModal = function(param1,param2,param3,param4)
{
if ($scope.customer_details; == '') {
// return false / Do nothing;
}
else
{
// write your logic here
}
}
});
If it is dynamic and if you cannot use ng-model
,
In the method, openlogsEservModal
check the condition you want to check using angular.element
and do your logic.
Here is the controller, you can use like this,
Example without using ng-model::**
app.controller('myCtrl', function($scope) {
$scope.openlogsEservModal = function(param1,param2,param3,param4)
{
var customer = angular.element('#4c609cf1bbb6c5080865df9cfc1fb649_mylogs_details_customer').val();
if (customer == '') {
// return false / Do nothing;
}
else
{
// write your logic here
}
}
});