Linked Questions
11 questions linked to/from angular.element vs document.getElementById or jQuery selector with spin (busy) control
216 votes
2 answers
218k views
querySelector vs. getElementById
I have heard that querySelector and querySelectorAll are new methods to select DOM elements. How do they compare to the older methods, getElementById and getElementsByClassName in terms of performance ...
47 votes
4 answers
81k views
Angular JS resizable div directive
My site will have multiple sections, each of which I intend to be resizable. To accomplish this I've made a "resizable" directive, e.g.: <div class="workspace" resize="full" ng-style="resizeStyle(...
1 vote
2 answers
3k views
Get element content in angular (alternative to .html() in jQuery)
I've got this element: <span id="tag_span"> {{ selectedSection }} </span> And I want to get its content from controller, which is {{ selectedSection }}. I can get the element like this: ...
0 votes
3 answers
3k views
Button click is not a function error in angular controller
I am trying to build a file upload component and I am getting the error :button.click is not a function. Why is that? <form name="uploadForm"> <div layout-gt-sm="row"> ...
5 votes
2 answers
418 views
what is the equivalent of $('#xxl') selector of jquery in angular.js
I have a code,that shows a modal with this code using jquery: $('#myModal').modal({'show':true}); but with angular.js not works. what is the equivalent of $('#myModal') using angular.js? // not ...
2 votes
2 answers
583 views
setting focus to angular elements inside ng-click
I want to copy the value from vm.foo to vm.bar (that works) and then set focus to vm.bar (that does not work). <input type="text" ng-model="vm.foo" id="foo" > <button ng-click="vm.baa=vm.foo;...
1 vote
2 answers
1k views
Uncaught TypeError: Cannot read property 'hideColumn' of undefined
Here my code to hide a column in kendo grid. var grid = angular.element("#priceCardGrid").data("kendoGrid"); for (var i = 0; i < priceCardModalScope.priceCard.length; i++) { if (...
1 vote
3 answers
901 views
how to log element in angular?
I am working on an Angular application and i have a view who is containing an iframe (The purpose of that iframe is just to display a login form). Like my attempt to submit the form manually was ...
0 votes
2 answers
949 views
angular.element selector vs jquery selector
Which selector is faster in an angular 1.x application? I have Jquery included and have been using both in my application as in below: var paneWidth = angular.element('.side-nav').width(); var ...
0 votes
2 answers
507 views
How to find and replace a specific text on a page
How to find and replace a specific text on a html page using AngularJs That text is on a third party component so the id and the class is keeping changing. What I can reference is the text itself ...
0 votes
1 answer
119 views
Looping through Array is giving me 0 lengths
This should be a fairly simple process but I'm having the most difficult time with it. I had to find a set of elements. So I had to dig through an element that contain a child element which then ...