Is it recommended to use jQuery method in AngularJS controller?
If not, how should i convert to AngularJS below?
I know I can use directive but I need a clean and simple way.
$scope.onEnabled = function (id, enabled) {
if (enabled) {
jQuery('#policyRuleTitle-' + id).removeClass('collapsed');
jQuery('#policyRule-' + id).addClass('in');
jQuery('#policyRule-' + id).css("height", "");
} else {
jQuery('#policyRuleTitle-' + id).addClass('collapsed');
jQuery('#policyRule-' + id).removeClass('in');
}
};