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
0
votes
1 answer

jqlite without jquery - Replacement for $(this) when click children

i'm trying to replace all jquery with jqlite so my problem is like this


0
votes
3 answers

How can I use methods of jqLite in AngularJS

How to use methods's of qjLite in AngularJS? I want to add 'p' html element and following to add class="red" . Maybe I something doing wrong... Here code which I wrote: angular.module('app', []) .controller('ctrl', function($scope){ …
Maksim
  • 155
  • 1
  • 2
  • 17
0
votes
1 answer

Why doesn't angular.element('

').css('color', 'red'); work?

Why doesn't angular.element('

').css('color', 'red'); work? angular .module('app', []) .controller('MainController', MainController) ; function MainController() { // angular.element('p').css('color', 'red'); ERROR. Now I see what…

Adam Zerner
  • 17,797
  • 15
  • 90
  • 156
0
votes
1 answer

jQuery or jqlite not working with elements inside

index.html:

ppp

general.html

pppppp

javascript var app = angular.module('StarterApp', ['ngMaterial','ngRoute','ngImgCrop']); app.config(function($routeProvider){ …
Yellove
  • 165
  • 1
  • 2
  • 8
0
votes
2 answers

AngularJS: Why can't I add an attribute to grandparent element when parent has ngIf directive

I'm using vanilla AngularJS v1.4.5 (no jQuery) and would like my custom directive to add an attribute to its grandparent element at compile time. In the compile function, I can achieve this using the parent() method of element twice to get the…
0
votes
1 answer

AngularJS - unbind event within same function passed to bind?

I'm trying to unbind an event in my AngularJS directive within a function that is passed as the event handler to angular.element($window).on(). From this question, I've come to realise that to unbind from the current directive only, the same event…
0
votes
0 answers

scrollLeft setter is not working (Angular, jqLitle)

I have this code var input = element.find('input').eq(0); scope.focus = function() { if (!input.length) return; input[0].focus(); input[0].select(); var divWrapper = input.parent('.tags')[0]; divWrapper.scrollLeft =…
carlitux
  • 1,217
  • 10
  • 14
0
votes
1 answer

Angularjs: Find element by ID in cached template

I've got several HTML files and I need to extract text content of given elements in these html files and get it into angular as variables. I've decided to use angular $templateRequest to get each HTML file, and $templateCache to store them in cache.…
Rado Koňuch
  • 375
  • 2
  • 8
  • 16
0
votes
1 answer

Watch for current value of input with update on blur

I have following input and it updates model on blur event. es-max-type…
vromanch
  • 939
  • 10
  • 22
0
votes
1 answer

jQuery CSS remove negative value

I'm using jqLite in AngularJS. Basically I'm adding some custom CSS properties like this: $scope.$on('scrollEvent', function(){ if (a < 5){ a = a + 1/20; $element.css({ '-webkit-filter': 'blur('+ a +'px)', …
Jack
  • 1,521
  • 4
  • 21
  • 29
0
votes
3 answers

Wrap element around children of main element. JQLite

I'm using angular and JQLite. I have an element MyTextclose with a attribute directive. In my attr directive I want to wrap
around the children. I used wrap(),…
Robert Baker
  • 25,593
  • 1
  • 20
  • 21
0
votes
0 answers

replacement for is in jqlite in angular application

I want to write the following expression with jqlite instead of jQuery: element.is (':visible') In jqlite there is no "is" function.
Galdor
  • 1,636
  • 4
  • 23
  • 37
0
votes
1 answer

angular.element not works when class is added through ng-class

if i add a class to an element through ng-class and try to get the existence of the same class through angular-element, its always returns false. Please let me know whats wrong with the below code, html:
user1153484
  • 197
  • 3
  • 13
0
votes
0 answers

Create a click handler only when needed

I have a small directive where the is a button, and a hidden input file. I would like to create a click handler when the button is clicked, so I would click the input file that is hidden. My directive: app.directive('fileUpload', function($timeout)…
Tzook Bar Noy
  • 11,337
  • 14
  • 51
  • 82
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
  • 5,176
  • 11
  • 46
  • 75
1 2 3
9
10