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

149 questions
0
votes
1 answer

AngularJS Directive jqLite convert .contents() to .children()

Consider this runnable example: var app=angular.module('myapp', []) .directive('mydct', function () { return { restrict:'EA', transclude:true, template:"
Template
", replace:true, scope:true, link:…
user1506145
  • 4,716
  • 7
  • 38
  • 68
0
votes
2 answers

Finding a specific element tag in angularJS

I'm working with angularJS and would like to remove/modify the class of a specific child element (who's class/id is unknown because it is being added to the parent element dynamically). I understand that using angular you can say something like: …
Dan
  • 212
  • 1
  • 5
  • 12
0
votes
1 answer

'Cannot stringify dataLayer' when using Google Tag Managers 'click-listener' in angular-js app

We are trying to implement tracking via the google tag manager for an angularjs app. When using a click-listener defined in the tag-manager, the following script gets injected into the app on every click (or so it seems): (function (a) { var b =…
hugo der hungrige
  • 11,164
  • 8
  • 52
  • 80
0
votes
1 answer

jQLite strange behaviour: element.css('right')

I've made the painfull experience that jQlite does not work like jQuery. The following statement is plain wrong: jqLite is a tiny, API-compatible subset of jQuery that allows Angular to manipulate the DOM If I set in my css the .pane2 { …
Johannes
  • 2,442
  • 4
  • 20
  • 32
0
votes
1 answer

finding visible elements with jqlite

I'm trying to write a unit test in Jasmine to look for an element that becomes visible after a button is clicked. The problem I am having is the find finds hidden elements to. var visibleUndoButtons = 0; var undoButtons =…
Crystal
  • 25,222
  • 53
  • 203
  • 370
0
votes
1 answer

How to make my calendar with the highest possible height within a directive

I am starting with angular. I decided to create my own simple month calendar within a directive. It's based on this calendar : multipleDatePicker. But the problem is that I can't make it with the highest possible height according to parent. The…
Loric-
  • 1,598
  • 8
  • 25
  • 46
0
votes
0 answers

How do I get a popover to respect "auto right" when the popover is inside a element?

I have a table where each cell holds a list of links. I've chosen to only show the first item of the list in the , then I created a badge and put it next to the item. Clicking on the badge generates a popover which contains the rest of…
Lambda
  • 151
  • 1
  • 9
0
votes
1 answer

Sync audio and animation in angularjs

I am trying to sync audio with animation in angularjs. I have done it before using jQuery but now that I have ported my project to angularjs, I am trying to stick to the angularjs philosophy. In jQuery, I added a data-time="time" attribute to each…
rmg.n3t
  • 933
  • 1
  • 10
  • 15
0
votes
1 answer

Arguments passed to the eq() function in the context of jQlite and Angularjs tests

I have the following code: element = $compile('
balteo
  • 20,469
  • 52
  • 196
  • 362
0
votes
1 answer

Increase element width with jqLite

In my angularjs directive I want to increase DIV width if vertical scroll bar is visible. I did the following with jQuery: var gridBody = gridElem.children().eq(1); var scrollBarWidth = gridBody[0].offsetWidth - gridBody[0].clientWidth; var lastCol…
synergetic
  • 6,896
  • 8
  • 58
  • 95
-1
votes
1 answer

element.on($destroy) shows element is not defined in angular

I am trying to cancel the $interval event in my directive while changing the route or state of the application. I found this code which could act in destroy event. But this returns my element is not defined. Do I have to inject any service or…
Ashokprakash
  • 23
  • 1
  • 9
-1
votes
1 answer

What is the most promising way to find whether or not event target is a child of known element?

I have the access to my parent element like this: var parentElem = angular.element('#parent'); Then on this below click event I want to check if the click is generated by any child of above parent. $('html').click(function (e) { // check…
Shardul
  • 906
  • 1
  • 11
  • 19
-1
votes
1 answer

Is it common practice to use jQuery in MRAID Ads (mobile only)?

Is it common practice to use JavaScript libraries in an MRAID Ad? I'm looking to implement a magazine-style “page-turning” user interface for an MRAID Ad on mobile only. I can see from the documentation that jQuery is mentioned, however I'm not sure…
user12121234
  • 2,353
  • 2
  • 22
  • 27
-4
votes
3 answers

Why are we using angular js framework instead of using jQuery or JQLite directly?

I am using angularJS for my application development and I am using JQuery UI in few places of my code. 1. Whether it will end up in performance when I use JQuery in my code. 2. Why to use angular if I can use JQuery / JQLite directly to my…
1 2 3
9
10