Ask Questions and Find Answers
Important:
Ask is now read-only. You can review any existing questions and answers, but not add anything new.
But - don't panic! While ask is no more, we've replaced it with discuss - the new Liferay Discussion Forum! Read more here here or just visit the site here:
discuss.liferay.com
RE: Using angular in a template
Hello guys,
im trying to use angular in a template because i want to update the value of an input using jQuery in a form that has been done in angular, but the problem is that angular doesnt detect any change when it actually updates. the script is very easy
Any suggestion about how can i do? how can i communicate to angular that an event has been taken place?
thanks in advanced
im trying to use angular in a template because i want to update the value of an input using jQuery in a form that has been done in angular, but the problem is that angular doesnt detect any change when it actually updates. the script is very easy
function sendPersonalEmail(emailDestino) {
var input = $('#email_destinatario');
input.val(emailDestino);
input.trigger('input');
input.trigger('change');
$("#email_destinatario")[0].dispatchEvent(new Event("input", { bubbles: true }));
i test to use angular.element(jQuery('#email_destinatario')).triggerHandler('change') aswell but the console give me an error "angular is not defined". i have read a lot of solutions similar to the last one but i cant manage to make it works. it seems that angular doesnt detect any change when is don in the client side.Any suggestion about how can i do? how can i communicate to angular that an event has been taken place?
thanks in advanced
Muchas gracias Javier, me ha venido fenomenal.
Copyright © 2025 Liferay, Inc
• Privacy Policy
Powered by Liferay™