I recently upgraded my Angular version from 1.4.12 to angular v1.6.6 while using SmartAdmin. After the update, I noticed that an alert started appearing every time I switched between states where JarvisWidget was used. The alert is specifically triggered by lines 319-325 of the uncompressed jarvis.widget.js JavaScript library.
/**
* Force users to use an id (it’s needed for local storage).
**/
if (!$(‘#’ + self.objId).length) {
alert(‘It looks like you’re using a class instead of an ID, please avoid doing that!’);
}
How can I prevent this alert from showing on pages without JarvisWidgets without modifying the JarvisWidget library? What could be causing this alert to trigger in my case?