0
votes
0answers
20 views

How would I test a $scope.watch (AngularJS) change in Jasmine?

I've just recently started writing something with AngularJS and I'm not sure how to go about writing a test for this particular thing. I'm building a "Help Request" mode that has different states. So ...
1
vote
2answers
39 views

Update Angular model after setting input value with jQuery

I have this simple scenario: - input element which value is changed by jQuery's val() method I am trying to update the angular model with the value that jQuery set. I tried to write a simple ...
0
votes
1answer
33 views

Why is scope.$watch not triggered when a value is set via $parse assign in Angular?

I have two directives. One directive show a dropdown and the other directive must hide the dropdown when somewhere else on the page is clicked. dropdown directive: app.directive('dropdown', function ...
0
votes
2answers
36 views

How to set the value of an attribute in Angular?

In my directive I have this code: // hide all drodowns with this attribute $(document).find('[dropdown]').each(function (index) { if ($(this).is(':visible')) { var a = ...
0
votes
2answers
38 views

Why won't angular events kick off when jQuery manipulates things?

Here is a plunkr sample I've created: http://plnkr.co/edit/bgocW5Xg1q0yyiLOAR0F I'm attempting to listen to events with angular, however they aren't invoked. When I click on the checkbox, then the ...
0
votes
0answers
19 views

Display PDF and Download with jQuery on Phonegap [duplicate]

I have a REST service that attaches a PDF with its response. For example: http://localhost:8080/backend/rest/getPDF I would like to display this PDF in my page (I'm using Phonegap) and allow the ...
0
votes
1answer
37 views

replace element in angularjs directive linking function

I'm creating a <row> AngularJS directive that needs to replace itself (the <row> tag must not be present in the DOM after execution) with a dynamic template that can contain any HTML code. ...
2
votes
1answer
46 views

Dynamic web page with RESTful content provider

Maybe it's a newbie question so sorry in adavnce :) I'm having a REST API that returns JSON objects. I'm trying to build a web-site with 2 page: First page presents a table that presents article ...
0
votes
0answers
62 views

uploading multiple files with angularjs

i want to upload multiple files using angular js, but it is like limited number of files and each with specific validation, hence cant use "multiple". Using multiple controls one for each file.. ...
0
votes
1answer
28 views

Ip Address mask for AngularJS

Does Anyone know a ip address mask plugin for AngularJS? Because I tried to use the "Jquery Input IP Address Control", but it's not working. When I try to use it, the "ngModel" attribute doesn't get ...
3
votes
2answers
40 views

Getting the Content-Type with AngularJS or jQuery

I want to make a directive with AngularJS which displays a media (an image or a video). To achieve this goal I have to determine the kind of media, in order to do that I wanted to make an AJAX reqest ...
0
votes
1answer
48 views

Creating an HTML popup form that is accessible on may websites

I want to have a HTML form that has two input textboxes and a submit button that can be places on many websites that I have. I just want to have the reference to this form in the form of javascript ...
2
votes
2answers
74 views

How to parse date time in JavaScript

I have Date in this format mm/dd/yy example: 04/11/13 and time in the format HH:MM:SS example: 17:02:30 I have to parse above two values and put in a variable dateTime with following format ...
0
votes
1answer
81 views

AngularJS - accessing directive scope

So, I'm looking to use ui.bootstrap.tooltip to appear when an element in a form is invalid. I'm using a directive to do this - it's a bit ugly, but it works. Except for one thing - the controller ...
0
votes
2answers
63 views

css “.selected” in angular.js ng-repeat does not work properly

I have simple radio buttons. I have a .selected class that turns the "+10", "0" and "X" labels red if you select one of them. This works: http://jsfiddle.net/KRMRU/18/ However, if all of the above ...
1
vote
0answers
47 views

Loading scripts in Angular

I'm working on an angular app that is becoming quite large. At the moment I have several controllers, each controller is dependent upon different jquery plugins. Currently I'm loading all the scripts ...
1
vote
1answer
34 views

Getting ngClick to work on dynamic fields

I can't seem to figure out why the ng-click directive isn't working on copied DOM elements. Here is the fiddle: http://jsfiddle.net/BkRqa/4/ I can click on + Insert new fieldset, but the buttons to ...
2
votes
1answer
137 views

Run jQuery code after AngularJS completes rendering HTML

In controller I get some JSON data using $http or $resource services. Then I write this data in $scope and AngularJS updates HTML structure of the page. My problem is that I need to know what is the ...
0
votes
2answers
76 views

Javascript strange execution order (loops etc.)

I am having trouble understanding the order in which stuff is executed in javascript... It seems like it completely does not follow the order I am accustomed with from Java. Could anyone suggest on ...
3
votes
1answer
125 views

Is this AJAX pattern a memory leak?

Consider this example of pretty standard method in Angular Js, which updates the view: $scope.fetchResults = function() { // Some local variable that will cause creation of closure var ...
2
votes
2answers
161 views

Angular.js ng-repeat across multiple elements

This question has been partly addressed here: Angular.js ng-repeat across multiple trs However that is just a work-around really, it doesn't actually address the core issue, which is: how can one use ...
4
votes
4answers
282 views

jQuery Plugins Doesn't Work Well with Angularjs

i have used jQuery slider in my project in which i am loading images using angular. My current view looks like this; <div id="slides"> <div class="slides_container"> ...
0
votes
2answers
49 views

Use Angular only in page loaded via ajax

<html> <head> <title></title> <script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.0.7/angular.js"></script> </head> <body> <div ...
1
vote
2answers
77 views

How to implement gmail compose window concept in Single Page Applications?

I am working on a project where it would be easier for users to quickly add transactions. I am very much interested to do something similar to what gmail compose pop up does on the single page ...
1
vote
1answer
55 views

How to update controller variable from jquery?

I have a date picker widget, and I want to pass the picked date to the controller. I have this script snippet in my view: <div id="datepicker"></div> <script ...
0
votes
1answer
52 views

Angularjs - when dom manipulation is assigned to button click it works, in directive it is incomplete

I have tried now several approaches. Approach 1 I have a method which loads the data from the server. This is in my controller: $scope.loadResults = function() { var url = "MY URL"; ...
3
votes
2answers
106 views

In angular JS, how to execute a line of JQuery code?

In the view I have this: <table class="table table-bordered" id="resultsTable"> <thead> <th>Classification</th> <th>Date</th> ...
2
votes
2answers
128 views

Angulajs Controller Called Twice?

i am beginner to angular.js and i have called the data from server using ngResource. however, i have figured out that for some reason, my controller is called twice. Here is my code; App.js file // ...
0
votes
2answers
46 views

How to issue a GET request with jqery/ajax?

I am trying to load data from a mongodb database, running on mongolab. The documentation is very good but it is weird how there are examples for PUT and POST yet there is nothing about GET: ...
0
votes
1answer
49 views

Angular.js routes and partials for complex navigation?

I'm trying to build a fairly sophisticated navigation menu with angular.js. It's going to be very similar to the main drawer navigation here: ...
2
votes
1answer
134 views

Using a jQuery Plugin (flipclock) in an angular.js application

i am fiddling around with angular.js and have to include a jquery plugin called flipclock.js. I googled a lot and found this article about wrapping jquery in an angular directive. I looked at it and ...
0
votes
0answers
81 views

jQuery addclass doesn't work in twitter bootstrap carousel which using ng-repeat

The issue I am facing now is jQuery addClass doesn't work under ng-repeat. The code below is from my partial page. I am trying to highlight the image when the user select it, unfortunately it ...
0
votes
1answer
54 views

Jquery keypress event does not add character to textbox

Through code, I would like to manually enter some characters to a input using JQuery. I am using this: var e = jQuery.Event("keypress"); e.which = 97; $("input").trigger(e); I also have a ...
0
votes
0answers
25 views

Angularjs jQuery bxslider is not affecting content of partial view

I'm building Angular application and I have problem with bxSlider. I know that I can't use js inside partial view. So I moved it to main page but code is not applied on rendered partial. Is there any ...
3
votes
1answer
43 views

How do I get the height of an element after it is populated by angularjs?

I'm doing a $http.get to get json data, which is then used to populate the views with something like $scope.getIdeas = function() { $http.get(ideasUrl) .success(function(data) { ...
0
votes
1answer
65 views

Set different classes in angular.js on click (in the most angular way)

(at first: Sorry, English is not my native language, there WILL be mistakes) i am currently learning angular and already started a little project, which is basicly an older project of mine, done in ...
0
votes
0answers
84 views

Angularjs bootstrap datepicker: Select multiple dates

I am trying to use the angular UI strap datepicker. How to select more than one date from the datepicker and return the value as an array. http://mgcrea.github.io/angular-strap/#/datepicker
0
votes
0answers
71 views

Is there a best practice for making angularjs ui bootstrap components draggable without using jquery UI?

We have a need to include drag capabilities in out angularjs app. Specifically dragging popups and modal dialogs. I don't see that this is supported directly. I've seen some references to ...
0
votes
1answer
52 views

Using jquery next() prev() on ng-repeated list items

I have a list item which I repeat over using ng-repeat. This list item is a list of key word suggestions. I want to use jquery to simply add a highlight css class when the user presses the down/up ...
1
vote
1answer
50 views

Manipulating DOM elements in AngularJS partial views using jQuery

I've got a fairly basic AngularJS app that has a couple of partial views - a search form and a results table. I'm now trying to add a jQuery UI slider to part of my results view, but I've realised ...
0
votes
2answers
90 views

Multiple ajax request angular: limit the number of active to 10

I'm developing an angular app that makes multiple ajax request. I would like to timeout a request if there are 10 already active request, so I should never have more than 10 active request. How can ...
0
votes
2answers
143 views

jquery extend vs angular extend

What is the difference between these two extend functions? angular.extend(a,b); $.extend(a,b); While the jquery.extend is well documented the angular.extend lacks details and the comments ...
0
votes
1answer
44 views

Angular {{$index}} integration with jquery plugin

I'm not sure that what I'm trying to do is possible.I have an ng-repeat that loops through a JSON file and creates input tags with an id of {{$index}}. <ul> <li ng-repeat="option in ...
1
vote
0answers
26 views

Animate dom element when other dom element is added in AngularJS

I want to animate an dom element when a particalar view is added through a route. I know how to animate the view element that is added like so: HTML <div data-ng-view ...
0
votes
0answers
40 views

Animate other dom element when view is added in AngularJS with jQuery

I want to animate an dom element when a particalar view is added through a route. I know how to animate the view element that is added like so: HTML <div data-ng-view ...
0
votes
1answer
61 views

jQuery syntax error: #/

I am currently using jQuery, Twitter Bootstrap and AngularJS for my web application. I've been trying to do routing, but jQuery keeps giving me Syntax error, unrecognized expression: #/time whenever I ...
0
votes
0answers
92 views

Get value of an element on Angular.js

I am trying to figure out what is the correct way to get the value of an element in Angular.js. I am inserting a JSON called options and printing out the values into label tags. The searchStep2 ...
0
votes
2answers
84 views

Promises in AngularJS

I try to load json file with angularjs, $q and return data from angular filter. I have a angular filter: MyApp.filter('my_filter', function ($q){ return function(input){ var deferred = ...
0
votes
0answers
56 views

Angular JS : Service : Flip the page on adding more divs/sections?

I have 6 widgets in one page1.I want to flip the page1 to Page2 when the 7th widget is added to it. For adding the widget i am using the Angular JS. The solution for the same problem you may also ...
0
votes
0answers
87 views

Angular directive which fires a jquery ui widget when finished rendering

I'm trying to create an angular directive which fires a jquery ui widget when the template has finished rendering. The template is in a separate html file, the data for this template is put on the ...

1 2 3 4 5 7
15 30 50 per page