jqlite Questions

3

Solved

I've been searching for an answer to simple but not trivial question: What is a right way to catch image' onload event in Angular only with jqLite? I found this question , but I want some solution ...
Broaddus asked 9/7, 2013 at 12:14

8

Solved

How do you get an element attribute value? e.g. HTML element: <button data-id="345" ng-click="doStuff($element.target)">Button</button> JS: function doStuff(item){ angular.eleme...
Directed asked 10/7, 2014 at 9:51

3

Solved

After a click pass the event to ctrl. I want to write a conditional that will return true if the element.target has the class modal-click-shield Question: How can I use .hasClass() with event.targe...
Vainglorious asked 21/1, 2015 at 0:4

3

Solved

I want to implement this code in directive but in jQLite this doesn't work How should this be done? var thisCell = element.closest('.sampleclass');
Omar asked 8/2, 2016 at 14:25

3

Solved

I'm trying to remove jquery from my Angular.js app in order to make it lighter, and put Angular's jqLite instead. But the app makes heavy use of find('#id') and find ('.classname'), which are not s...
Crepuscule asked 24/6, 2013 at 19:39

2

Solved

Is there cleaner way to iterate over a set of jqlite elements than the following? var els = angular.element(document.getElementById("main").children); // just as an example for(var i=0, el; el=els...
Baltazar asked 28/9, 2013 at 17:14

2

Solved

How can I check if an element with a specific ID already exists in my DOM inside an Angular directive? By using angular.element() an element is created if one does not exist, for example angular.el...
Pocked asked 20/6, 2014 at 15:22

2

Solved

I have looked at multiple threads and tried a vast variety of solutions. Quite frankly I think I am losing my mind. I have an ng-repeat with inputs. All that needs to happen is that when the user ...
Glyconeogenesis asked 9/10, 2014 at 12:41

3

Edit: "This can't be done in Angular UI Modals" is a valid answer, if that's actually the case. This is the return data I get from a touch event. Conspicuously missing are any useful touch X/Y co...
Flageolet asked 29/11, 2015 at 0:42

1

Solved

When running this test, I keep getting the error Expected undefined to be true. it('should have the right classes', function() { // this doesnt work expect(element.find('.exampleClass').hasClas...
Emulsifier asked 7/7, 2015 at 2:17

3

I've been struggling lately to understand why the .addClass function was not working on jqLite element.addClass('active') Element returns me an array of html elements, tested that over and over...
Patience asked 10/11, 2014 at 9:18

1

Solved

I have a regular angular app with a directive. This directive contains an element with a ng-click="clickFunction()" call. All works well when I click that element. I now need to write a test for th...
Purington asked 31/10, 2014 at 12:53

1

Solved

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 ...
Lockwood asked 24/5, 2014 at 16:22

2

Solved

In this example, I have an input with an attached directive. The directive is meant to display messages next to the input. There's another input and a button to add messages. Once some messages are...
Josephus asked 12/12, 2013 at 23:46
1

© 2022 - 2024 — McMap. All rights reserved.