angularjs - Difference between using jQuery and angular element reference in angular directive -
i want wrap jquery in angular. in link function
$('#slider').slider();
but wondering difference to....
$(elem).slider();
because second 1 'sort of' works.
the 'elem' variable in link function 'made' angular using jqlite.
from docs:
jqlite tiny, api-compatible subset of jquery allows angular manipulate dom in cross-browser compatible way. jqlite implements commonly needed functionality goal of having small footprint.
Comments
Post a Comment