Questions tagged [jqlite]

jQLite - a jQuery Stand-in for BlackBerry (and other mobile devices)

jqLite is a tiny, API-compatible subset of jQuery that allows AngularJS to manipulate the DOM. jqLite implements only the most commonly needed functionality within a very small footprint, so only a subset of the jQuery API - methods, arguments and invocation styles - are supported.

Project home

148 questions
5
votes
2 answers

How to use angular.element to find and iterate over multiple elements?

I am writing a directive in AngularJS and one of the things I need to do is find all of the controls inside a form and iterate over them. If jQuery was loaded I do this: var inputs = element.find(".ng-invalid,.ng-valid"); inputs.each(function () { …
user3676163
  • 129
  • 1
  • 5
5
votes
1 answer

AngularJS : Listen for click events on a button outside of a directive

I am new to angularjs. I am building an angularjs SPA. The application page has two sections - a buttons area and a application area. The application area is where my views are loaded. The buttons area is the same for each view, hence I do not…
rmg.n3t
  • 951
  • 2
  • 10
  • 16
5
votes
1 answer

Removing jQLite (mini-jQuery) from Angularjs

Angularjs use very stripped version on jQuery called jQLite (or mini-jQuery in some websites). If you add a reference to main jQuery, Angularjs will use your main jQuery and I always have reference to main jQuery in my applications. So for reducing…
Seyed Morteza Mousavi
  • 6,855
  • 8
  • 43
  • 69
4
votes
1 answer

angular js select all text from a range div and span elements to let user copy the selected text

I am trying to create a select all functionality (in angular js) of some text which appears in a format similar to the structure given below. When all text is selected, then user could hit ctrl + c to copy the same.
Akg
  • 349
  • 1
  • 3
  • 15
4
votes
1 answer

How can I grab an element's attr data in angular with jqlite?

How can I grab an element's attr data in angular with jqlite? html,
angular, app.directive('myForm', function() { return { …
Run
  • 54,938
  • 169
  • 450
  • 748
3
votes
2 answers

angular.element().hide() versus ngIf

Angular gives access to some jquery functions here I'm just wondering if there is any difference in performance between .hide() and using the ngIf directive? Added clarification that came from comments I understand the difference between ngIf and…
Kraken
  • 5,043
  • 3
  • 25
  • 46
3
votes
1 answer

How do you find first visible element with jqlite under AngularJS?

So, I have the following Angular directive to autofocus first input field on the current page of my Ionic application. It works great when the first field isn't hidden. But, if it's hidden by ng-hide, logic fails. So need to modify the element…
Nirav Gandhi
  • 1,945
  • 1
  • 23
  • 32
3
votes
3 answers

How to make Angular use jQuery over jqLite

In my project I am using both jQuery and angular. I have installed these through bower and I am using browserify to load the files. This seems to work fine, except angular is using jqLite it seems. When I am trying to…
Heather Roberts
  • 1,978
  • 1
  • 24
  • 33
3
votes
1 answer

jQlite .find() traversing not working

I'm using an angular directive and I am not having any luck with the jQlite .find() method: DIRECTIVE function cardsList () { return { restrict: 'A', controller: 'CardsController', templateUrl:…
3
votes
2 answers

Animating a button with AngularJS inside ng-repeat

I have this online shop here that is displaying items, sizes, prices, etc. and I want to add an animation to the .add-to-cart-btn
SuperVeetz
  • 2,128
  • 3
  • 24
  • 37
3
votes
2 answers

Angularjs performance in creating dom elements, pure js vs jqlite

I have a directive in Angularjs that will have a table with lots of rows(over 1000), so my boss said that i shouldn't use binding to make the grids content(because of angular's ~2000 limit in binding) and instead i should create the dom elements on…
Exlord
  • 5,009
  • 4
  • 31
  • 51
3
votes
1 answer

Angular directives link function

I'm new to Angular. I was trying to learn directives. In my directive's link function I log my element and see that its an array. why it's an array? HI JS: angular.module('custom.directive').directive('mouseEnter',…
mdnajimahmed
  • 124
  • 2
  • 9
3
votes
2 answers

Angular JS - Adding a jquery plugin to jQlite

I need to do some dom traversal on a $element, but jQuery or jQlite don't do what I need out of the box so I need to use a jQuery plugin called closestChild. https://github.com/lolmaus/jquery.closestchild/blob/master/jquery.closestchild.js I have…
jonhobbs
  • 26,684
  • 35
  • 115
  • 170
3
votes
1 answer

AngularJS Jqlite after doesn't add element

Consider this runnable example: Why is el4 not put after el3? If I debug and print el3 it seems that el4 has disappeared. How can I put an element after another element, so that they become siblings? EDIT: I don't want to append el3, before calling…
user1506145
  • 5,176
  • 11
  • 46
  • 75
3
votes
2 answers

Passing jqLite .html() handle directly as an AngularJS watch listener

I'm trying to pass the jqLite function element.html directly as a listener of a watcher: angular.module('testApp', []).directive('test', function () { return { restrict: 'A', link: function (scope, element, attrs) { …
rko
  • 41
  • 3
1
2
3
9 10