Wednesday, September 6, 2017

What is jQLite or jQuery lite?

 jQLite is a subset of jQuery that is built directly into AngularJS. jQLite provides you all the useful features of jQuery. In fact it provides you limited features or functions of jQuery.

Here is a table of supported jQuery methods by jQLite.
jQuery Method
Limitation, if any
bind()
Does not support namespace, selectors and eventData


children
Does not support selectors


clone()



contents()



css()



data()



detach()



empty()



eq()



find()
Limited to lookups by tag name


hasClass()



html()



text()
Does not support selectors


on()
Does not support namespace, selectors and eventData


off()
Does not support namespace, selectors


one()
Does not support namespace, selectors


parent()
Does not support selectors


prepend()



prop



ready()



remove



removeAttr()



removeClass()



removeData()



replaceWith()



toggleClass()



triggerHandler()
Passes a dummy event object to handlers


unbind()
Does not support namespace


val()



wrap()




addClass()

after()

append()

attr()

No comments:

Post a Comment

What is restrict option in directive?

The restrict option in angular directive, is used to specify how a directive will be invoked in your angular app i.e. as an attribute, class...