I have this jQuery function:
function updateProfile(profile, sessionId){
alert(profile,sessionId);
}
In HTML I have like this
<button onclick="updateProfile(profile, {{sessionId}})">Update</button>
It doesn't work since the {{sessionId}}
is the angularjs variable.
What is the correct way to pass this angularjs variable inside the jquery onclick function?
Thank you all for participating!