Tagged Questions
0
votes
2answers
20 views
Angular: Implementing ng-click in directive with DOM manipulation?
I am Angular newbie and I am struggling with what I think to be a standard problem.
What I am trying to implement is a custom directive called "clicker" that is meant to be included in "ul ng-repeat" ...
0
votes
0answers
31 views
AngularJS generate HTML template with ng-click=“function(arg)”
I am trying to generate an HTML templaye from AngularJS directive but I'm not able to pass any object into a function within one of the generated elements. This is my directive:
...
0
votes
1answer
20 views
AngularJS - Form validation except fields that only have the “required” rule
I know with a form, I can get the $valid property to check whether the entire form is valid. Is there a way to get the validity of a form but ignore undirtied fields whose only rule is "required"?
I ...
-2
votes
0answers
8 views
_renderItem not working autocomplete
I'm doing this autocomplete with angular and the ui-autocomplete dependency that acts just as the same that the one with jquery, ok, the thing is that when I use the renderItem method nothing happens, ...
-1
votes
2answers
31 views
Why ng-click function is executed twice?
I include a view with the ng-include functionnality:
<footer ng-include="view" ng-controller="searchPresenter" class="searchW"> </footer>
My controller defines:
$scope.view = ...
0
votes
0answers
24 views
How to disable some of the dates in datepicker using angularJS
I am working on angular JS. I am trying to integrate Bootstrap datepicker into my application. Here i need to disable some dates in datepicker, I have implemented it like,
...
0
votes
1answer
27 views
ng-repeat with jquery and rails
Im using ng-repeat to iterate over some json objects and trying to add {{code.id}} as a parameter for a rails route e.g.
card_url( @car, {{card.id}} )
I know this is not possible due to the rails ...
0
votes
2answers
34 views
AngularJS directive that appends HTML elements to existing element
I have an AngularJS, JS, JQ, HTML5 web app, which is capable of sending different HTTP methods to our project's RESTful Web Service and receiving responses in JSON.
It looks like this:
What I want ...
-1
votes
0answers
22 views
HTML5 multi-file upload with pause resume [on hold]
I am searching for HTML5 file uploading with pause and resume. What i intend to do is upload multiple files sequentially and after each file upload pause for a while and then resume for next file ...
0
votes
1answer
18 views
Run javascript code after angularjs route loaded
I need to show an alert after a route has been loaded by angularjs. The piece of code to show the alert is in the view loaded asynchronously by angularjs:
<script>
alert('test');
...
1
vote
1answer
57 views
Angular promises using multiple http requests
I have read a few forum posts before on angular promises but can't get it to work in my instance. I am using nodejs /locomotive for the backend and Angular form the frontend.
I have the following ...
0
votes
2answers
37 views
jquery hide/show particular li child elements
I have some html like so:
<ul id = "postsList">
<li ng-repeat="post in posts">
<button class = "deleteButt" ng-click="delButt()">Remove</button>
<!--hidden div I ...
0
votes
0answers
24 views
Using Waypoints.js inside an AngularJS view
I am trying to use Waypoints inside a scrollable AngularJS view, however it's not working. I am trying to use ui.utils jQuery Passthrough but nothing happens. Here's what I have so far:
<body>
...
1
vote
0answers
44 views
Checkboxes and Javascript: Inconsistent click event + selected state
I'm building a couple of toggle buttons for Highcharts in Angular. However, my question is more of a general javascript question and not about Angular or Highcharts since I've seen this problem pop up ...
0
votes
1answer
24 views
Enable/disable button if value is different than select by default
I need to toggle a button state between enabled/disabled if I change the default value of a select element. Take this HTML as example:
<select
ng-change="statusBtn(btnUpdFee, updFee)"
...
0
votes
0answers
25 views
Move elements down and flip one on top with ng-animate, css and/or jquery?
I have an angular app which essentially just holds a few "cards" right now, and has a button which adds a new card to the top of the stack. What I'd like is to use a combination of ng-animate, css, ...
3
votes
1answer
59 views
why does angularJS treat spaces as empty? [duplicate]
In angularJS, I have a input field bind with ng-model, have something show if input is not empty.
<input id="name" type="text" ng-model="typeSignature" placeholder="Type your name here">
...
0
votes
1answer
31 views
AngularJS - JQuery : ngInclude directive - DOM
My templates bootstrap contain JS, as they are called JS is not executed, you have an idea please.
This is my Index.html
<body ng-app>
<ng-include ...
1
vote
1answer
59 views
Using angularJS in Enterprise app instead of (jquery + jqTemplate+jqValidationEngine+jqGrid)
We have developed and Enterprise app which is using following technologies:
ASP.NET Web Forms
AJAX
jQueryValidationEngine - For validation
jqGrid - For Data Grids
jqTemplate - For HTML templating
...
0
votes
2answers
26 views
angularjs if/else statement and window width
I am new to AngularJS and recently introduced it into my application. I am trying to re-write some of my existing jQuery code in my controllers, however, on one occasion, i am using:
jQuery:
if ...
0
votes
0answers
8 views
ng-grid is loading twice when i use sorting on specific field
Following is the sample code that i used. in that code when i click on the field name at that time it ajax call will run twice. is there any solution for that ?
$scope.totalServerItems = 0;
...
0
votes
1answer
15 views
Route conditionally load jQuery
In my AngularJS app I have one route that depends on jquery and jquery ui. I want to avoid the extra 150 kb.
Is it possible to load jquery and jquery ui only for that particular route?
0
votes
1answer
67 views
Chaining promises resulting in undefined
I keep getting undefined error in this function. It's broken down into 5 individual functions and I'm trying to have each run after the previous one is complete but using the data returned from the ...
0
votes
1answer
17 views
Loading jquery at the end with angularjs
Hi all iam new to jquery and angularjs(have done jquery for validations in .net apps but not much exp so please bear with me)
i want my jquery code to run at last after angular js below is my ...
0
votes
0answers
12 views
jQuery plugins and their effect over performance
Could somebody tell me if is ok to use jQuery UI and Angular together . Also is there a bad practice of is the performace going to lack if I use many jQuery plugins at the same time ? What can ...
0
votes
1answer
33 views
Calculate Age for multiple inputs using datepicker
I can calculate the date for a single input, but when there is more inputs, how do I do that?
One setfield has a name, DOB and AGE, AGE has to be calculated based on the DOB selected... the thig is ...
0
votes
1answer
27 views
How to reinitialize Elastislide carousel with a new image set - using angularjs
I am using angularjs and would like to show/hide a carousel on a page. Based on events on the page, I would like to remove and later display the carousel again with a distinct set of images. The ...
1
vote
1answer
22 views
Using jqueryUi.resizeable() with AngularJs
I have a DOM element in one of my templates that I want to make resizable using jqueryUi. The long and short is that I have a <div> element in my template called "test".... Other than that I ...
0
votes
0answers
23 views
HTML Table rendering before DataTables directive is applied
I'm using Angular to create a single page application. One of the pages is a dropdown of different reports I can generate and I use DataTables to format the report.
This is roughly what's going on:
...
0
votes
2answers
42 views
Angularjs show-hide
Im trying to re-write some of my application using angularjs.. So far i've used jQuery and made use of .show and .hide for example:
example.html
<div>
<ul>
<li>
...
0
votes
0answers
55 views
How to click a button after page load with Angularjs
Im new to angular, to the answer for this question might be very straight forward, I just cant seem to find the solution.
I have an angular app with firebase as my backend, my general goal is to have ...
0
votes
1answer
27 views
Rewriting jQuery files with Angular
I am looking to start using angularjs within my application. I have been able to write some controllers and get them utilized from the front-end. What i am trying to do now is refactor some existing ...
0
votes
2answers
39 views
How to make clickable URL's in JSON response from REST using AngularJS?
I have an AngularJS, JS, JQ, HTML5 web app, which can send different http methods to project's RESTful Web Service and receive responses from it. Response comes in JSON and looks like this:
This is ...
0
votes
2answers
51 views
Angular JS - repeat image tag for numbers in array
I'm modifying my question a bit since I was not able to get a proper solution previously.
I have an array products_page=["7","8","6","9","5","7","8","9","8","7"]
Each time the below table's is ...
3
votes
2answers
59 views
Call function of angularjs instead of jquery
AngularJS has functions which override jquery functions. For e.g., wrap() function is there in angular.js and in jquery-1.10.2 also but I want to call the wrap() function of angular.js so how should I ...
1
vote
2answers
21 views
Using Jquery UI plugin with Angular
I wanted to use the jquery's UI layout plugin in an angular application. Is there an angular directive that does this already, or serves the same purpose?
0
votes
1answer
38 views
Newly added elements from angular directive not getting compiled
I wrapped my input tag with some div tags as per the requirement. Now the issue is, class of div tag is changing dynamically by angular, but seems this newly added div is not getting compiled and ...
0
votes
0answers
26 views
Can Angular.js be used in “classic asp” websites?
I've have two file that are basically the same. A classic .asp file, and the viewsource of the .asp saved as a HTML file. In both I include the jquery framework, the angular.js framework, and project ...
1
vote
1answer
50 views
Angularjs + ASP.NET MVC + ASP.NET Web API
I am planning to build my new web application. I am good at ASP.NET MVC and jQuery and have working knowledge of Web API too. I am new to Angularjs but I want to use it on client side for complex ...
0
votes
0answers
44 views
Returning angular promise in angular service module
So basically I am using angular to gain access to a json file, where I am searching for a user with a corresponding email. Then I need to find this user and return it from the service module. I then ...
0
votes
1answer
34 views
Angular JS - Need to apply different filter (for a table) depending upon different drop downs on page
I'm having three different sets of drop downs and also search box to apply filter for a table. My table should filter if someone enters text in textbox (or) depending on the value selected in one of ...
0
votes
1answer
33 views
Scroll event is not binding to a html element after adding ng-switch in AngularJS
I am facing a strange bug in my code which I am not able to understand, May be scope issue,
event binding at wrong time, not sure.
Here is the scenario, I have the below partial.
<ul ...
0
votes
2answers
42 views
$http.post not working in AngularJS
Please look at this code and tell me what im doing wrong. When i use $http.get my code work, but if i use $http.post i never get the parameters to the request .php file.
This is Service function:
...
0
votes
0answers
20 views
Angular cache options
I am new to angular and wanted to implement the cache in it. I have found few after Google http://gregpike.net/demos/angular-local-storage/demo/demo.html
http://jmdobry.github.io/angular-cache/
Can ...
1
vote
1answer
37 views
Making tooltip position relative to windows size with AngularJS UI
I'm trying to change the position of a tooltip (based on the AngularJS Bootstrap UI) depending on the screen resolution, basically to have the first on mobile, and the second one on the rest ...
0
votes
1answer
18 views
Check which field is not valid in form with Angular
I need to check which fields aren't valid after 5 seconds when form is rendered. I have a button and I set this ng-disabled="!step1Form.$valid" but I need to add some kind of CSS class maybe red to ...
1
vote
1answer
34 views
AngularJS - Jquery datatable empty
I'm trying to display a datatable using angular and jquery datatable but so far the datatable stays empty after applying the datatable function.
I've read that the best way is to use a directive but ...
0
votes
0answers
43 views
how to scroll a div to left using angularjs
I have a div like below:
<div class="col-xs-1 scroll-button"><i class="glyphicon glyphicon-chevron-left"></i> </div>
<div class="customer-ust-bant col-xs-22" ...
1
vote
1answer
33 views
Angular $http service cache not working properly
I have a $http service in angular js which has a cache enable for it. When first time load the app service gets call and get cache. Now when i call the service anywhere from the same page the data ...
0
votes
1answer
43 views
AngularJS $http vs. $.ajax callback response time
I am trying to understand why AngularJS $http service success callback give me a slower response time compare to the $.ajax success callback.
I trigger this code 5 times with differents json files :
...