Tagged Questions
AngularJS is an open-source JavaScript framework. Its goal is to augment browser-based applications with Model–View–Whatever(MV*) capability and reduce the amount of JavaScript needed to make web applications functional. These types of apps are also frequently known as Single-Page Applications.
2
votes
1answer
6 views
angular protractor: driver.wait and .then taking allScriptsTimeout time to return
I am trying to test an xmpp chat application, and having some difficulties testing the results of asynchronous operations. The test is trying to remove a contact from your roster (contact list), and ...
1
vote
0answers
12 views
angularjs $httpProvider interceptor documentation
I am new to angular (and programming), here is a seemingly simple question but I could not figure it out.
some tutorials suggests using $httpProvider.interceptors.push('interceptorName') to ...
0
votes
0answers
9 views
Can I use a strict filter in angularjs to search in all pages?
I've got a problem while developing a pagination div and trying to search using strict data. What I want to do is to search across all the pages, not only the actual one. Sorry if my english is bad, ...
0
votes
0answers
5 views
Where to put duplicate calls to firebase in angularjs app?
I need to get a set of products from firebase in every controller, and it would be ideal if I don't have to make an API call every single time. What is the best way to achieve this with the ...
0
votes
0answers
12 views
Protractor clicking button twice
I'm running a protractor test and for some reason my link is getting clicked twice. I'm assuming there is something basic I'm missing but can't figure it out. Thanks
describe('Quotegen', function() {
...
0
votes
0answers
7 views
Why does my karma-coverage (istanbul) report say that these lines aren't covered?
I'm using Angular with Coffeescript and testing with Karma, Mocha and Chai (and Karma-coverage which uses istanbul for the coverage tool)
I have these lines in my controller
...
0
votes
0answers
7 views
IOS8 Safari scrolling content cut off
I have an Angular website with a Bootstrap theme built primarily for mobile and on IOS8 Safari it randomly cuts off scrolling content(See image).
I have tried to inspect element when it does this but ...
0
votes
0answers
6 views
Pascal Precht's angular-translate vs. Rahul Doshi's angular-localization
I'm using Pascal Precht's angular-translate (12.5 KB minified) + Alex Sexton's messageformat.js (15 KB minified) for pluralization.
After watching AngularJS YouTube channel's video «Internationalize ...
0
votes
0answers
6 views
How can I define a ReST endpoint that allows json input and maps it to a JsonSlurper
I want to write an API ReST endpoint, using Spring 4.0 and Groovy, such that the @RequestBody parameter can be any generic JSON input, and it will be mapped to a Groovy JsonSlurper so that I can ...
0
votes
0answers
18 views
$rootscope:infdig error in IE and FF angularjs
I am using Angularjs framework for my project. When I click on the link, it navigates to another page carrying some values using service. It works fine on Chrome but "often" in IE and FF, it gives an ...
0
votes
3answers
31 views
Make checkboxes not required to enable button if hidden
I have 4 checkboxes on a page and a button that is not enabled until the checkboxes are checked. I am running into a problem when some of the checkboxes are hidden. When they are hidden I can't check ...
0
votes
0answers
7 views
Position values not updating using angular-parallax duParallax plugin
Update: As soon as I refreshed the page the color property starting working. No idea why. Now all I need is to get backgroundPosition to update!
Update #2: got it! backgroundPosition: '20px ' + pos + ...
0
votes
0answers
6 views
ng-grid dynamically hide columns with no data
Does ngGrid provide a way to programmatically hide its columns. My plan is to iterate over the data and set the visibility of certain columns (with no data) to false. Is this doable? Is there a ...
0
votes
2answers
21 views
Reload AngularJS Controller
I'm a newbie to angularjs.
My Problem is that I habe a User Controller for handling Login and Logout. I have also an other controller to load an header menu for my site.
If the user login to the ...
1
vote
1answer
6 views
Angular UI-Router parsing URL that contains slashes as part of state
I have a nested a state that is associated with a file path within a directory. That is, the url for the view is something like /workspace/path/to/my/file.txt. Right now, simply using /:path does not ...
0
votes
0answers
5 views
angular-gridster removing an item
This is maybe a more general AngularJS question about accessing one module's controller from another but here goes anyway. I am using the https://github.com/ManifestWebDesign/angular-gridster ...
0
votes
1answer
29 views
Bootstrap button loading text with Angularjs
In a non-angular application that uses bootstrap and jquery, I can create buttons like this:
<button id="saveButton" data-loading-text="Please wait...">Save</button>
Then, when the ...
0
votes
0answers
6 views
How can I pass this value via attribute from the element to a custom directive that has dynamic filter?
I am trying to modify a directive that was custom built and I do not want to modify if possible the way it is currently structured. I want to do exactly as stated in this question:
Using Filters ...
0
votes
0answers
6 views
ng-touchstart and ng-touchend in Angularjs
I have an element which fires functions on ng-mouserdown and ng-mouseup. It doesn't work on touch screen, so I try to call a function on ng-touchstart and ng-touchend. But it doesn't work too. Did ...
0
votes
0answers
6 views
LinkedIn share button only appearing on initial load in AngularJS app
I am using AngularJS 1.3 with jQuery 1.11, and I'm trying to add a LinkedIn share button (using the LinkedIn share plugin generator). This button appears in one of my templates, inside a div. Here is ...
0
votes
0answers
5 views
Facebook Comments Angularjs wont appear when navigating to other view or returning
I've been struggling with this issue for too long, and I am looking for help, I have tried these directives: https://github.com/wlepinski/angularjs-facebook-sdk it works perfectly first time the view ...
0
votes
2answers
16 views
Set default value of select to null option
According to the Angular documentation, you can create a null option that is not part of your model. This allows you to have a descriptive option. I.E. in their example they have -- choose color --. ...
1
vote
1answer
24 views
Angularjs - navigating to a specific div via manually entering url into address bar
Lets say I have two divs on an index page:
<div id="divA"></div>
<div id="divB"></div>
Using Angular (assuming through routing), is there a way to manually enter a url (in ...
1
vote
2answers
79 views
Dynamically update CSS
I have my HTML set up like this
<div.... repeats in a loop... >
....
<div ng-init="setWidthOfTimeLine(machine)" style="height:2px;" class="background-grey" >
<div ...
0
votes
1answer
26 views
AngularJS ngDisabled isn't activated as it should be
I have a code that should disable a button when : registerForm.$invalid || form.password != form.passwordBis, which should mean : "Disable the button if the form isn't valid OR if the ...
0
votes
0answers
7 views
ng-route, original non interpolated path in the controller
I use ng-route and need to match the current path with the original non interpolated path setup in the config.
In the controller I can inject $location service, which will give me the current path.
I ...
1
vote
1answer
22 views
In my service-factory I lookup up a large dataset - I want to persist it and check for its existence to avoid calling it again
My service (factory) makes an API call and assigns response data to a variable:
.factory('MedicationMatchingNamesFactory',
['$http', '$q', 'MedicationDisplayNamesFactory',
...
0
votes
0answers
11 views
Update Nested Attributes with Composite Primary Keys Returns Unpermitted Parameters Error with Rails 4.1x
I have an edit form being sent to rails via a JSON feed. This form has two levels of nested attributes, with the last level using a composite primary key. Here's a typical params:
Parameters: ...
0
votes
0answers
19 views
Using filtering, ordering, and pagination together efficiently with AngularJS
I have been implementing the ability to filter a table based on different fields and at first it seemed fairly straight forward, but now things are getting more complex and I want to make sure I am ...
0
votes
1answer
7 views
access compiled transcluded scope to calculate height of elements
I have the following DOM:
<carousel calculate-carousel-height>
<slide ng-repeat="article in bestArticles" active="slide.active">
<div>{{article.text}}</div>
...
0
votes
0answers
3 views
Angularjs mocking $cacheFactory
I am using $resource in an angular service.
I want to use my own custom cache based upon $cacheFactory, rather than the built-in $http cache, so that I can manipulate the cache when responses arrive ...
0
votes
1answer
19 views
Processing data with javascript and showing in HTML with Angular.JS
Currently I work with processing user data from Facebook.
We have the client-side which is on a site other than the server, where the data is processed and saved.
It works like this:
1) The user ...
0
votes
1answer
13 views
AngularJS Filter Posts by Date not showing today's date
I've got a list of events on a site I'm building and I would like the past events to be removed automatically. I've written a filter that is doing this, except it is removing today's events as well. ...
0
votes
3answers
37 views
How to wait for an http call to get over in js?
I am making a http call to user using $http. I have a success method which gets called on getting the success response from server.
My question is how can I wait(i.e not to do what is written after ...
0
votes
0answers
13 views
Call a $scope function on date change in UI Bootstrap's Datepicker not using $watch
Is it possible to call a function after a click on a date or month in datepicker without using $watch? Currently, I'm using $watch to monitor changes in date to trigger a task.
If so, can you please ...
1
vote
0answers
27 views
AngularJS object filter in select
I have a select element which uses ng-options to iterate through jobPosting objects. Each jobPosting object has a jobTitle, a recruiter, and multiple other things. I want the jobTitle of each to ...
0
votes
3answers
31 views
Collapsing whitespace with bootstrap columns?
First, here's a screenshot of the issue I am talking about.
I am trying to make the whitespace disapper. For example, I would like the 4th comment ('comment comment comment') to be under the first ...
0
votes
1answer
9 views
Angular Ui Router - Not able to change $state.current.data
I am trying to change the value of $state.current.data from a controller....but this change is not reflected in .config(function($stateProvider) {}.
angular.module("main.loadbalancer", ...
1
vote
1answer
6 views
angular ui-router all controllers get reloaded with state change
I'm having an issue with angular ui-router where all controllers on a given state are being refreshed when going to the same state (but with different params). For reference my states are like:
Main ...
0
votes
1answer
27 views
How to invalidate a form in angularjs? (or how to disable a form in angularjs?)
I want to preven form submission for a specific user type, preferably without having to edit something in the controller and without using an any type input-field? So basically something like this:
...
0
votes
0answers
14 views
JWT (JSON Web Token) with PHP and Angular.js
I have an Angular.js application and I am trying to implement authentication to my PHP backend using a JWT.
I have the app setup to set the token on login and send the token with every request if it ...
0
votes
1answer
15 views
Error using AngularJS: “Diff is not defined”
I'm working on a project using AngularJS and Sails. Trying to run the webapp, I found the following error:
ReferenceError: diff is not defined
at ...
-1
votes
0answers
9 views
How to combine a multibar chart with a line chart in NVD3?
Just i have a simple and small question, I would like to know how i can mix a line chart with another multibar chart ( or a stacked bar chart ) ?
I have been searching on the web for a example but i ...
0
votes
1answer
24 views
AngularJS $apply not working after ngChange on input type range
I'm not sure if what I'm doing is allowed or possible but basically I have a simple audio player using the html5 audio element.
app.factory('audio', function($document) {
var audio = ...
0
votes
0answers
8 views
Famo.us Prevent Scrollview Bounce
I can't seem to find the correct set of scrollView options to disable the overscroll/bounce effect. I'm using the last example on this page:
...
0
votes
0answers
17 views
Angularjs POST to PHP printing blank values in email and console
I'm trying to submit values from angularjs to a php page, then have the php page send the values to an email. The problem is that the variables sent to the email are printing blank. When in my IDE, ...
0
votes
0answers
9 views
Angular Services and factories: Bit confused about the concept [duplicate]
I am new to angular js and I am bit confused with angular services and factories:
Can anyone explain exactly how services and factries are different in javascript anatomy?
0
votes
0answers
16 views
AngularJS doesn't select previously selected options in ngSelect with multiple
I'm working on application with power of Laravel and Angular. The important models in this subject are Product and Category, which Product has many to many Categories.
In the admin frontend area I ...
1
vote
1answer
16 views
Do I have to use $watch to dynamically pass isolate scope attributes to my custom controller?
I have a controller that stores super heroes. I would like to use a custom directive to display a certain super hero based on the value entered in an input field. I do not wish to achieve this with a ...
0
votes
0answers
5 views
How to create a middleware in ngResource and keep track of Login
I'm building my first Angular (big) appliaction, and I wanted to do all logic on the views, and leave the Server as a WebService-only.
But, now I'm facing a little doubt about handling ...