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.
0
votes
0answers
2 views
How do I override AngularJS's routing with my .htaccess rules?
How do I override AngularJS's routing with my .htaccess rules?
I am trying to rewrite the following:
client.php to client
play.php to play
I tried doing the .htaccess rules but seems to be that ...
0
votes
0answers
4 views
How to fix EXIF orientation on before upload with angular-file-upload
I am using angular-file-upload directive to upload files, I have problem with images or photos taken with apple devices, I understand that apple include exif orientation data on image to correct view ...
0
votes
1answer
12 views
Angular ng-if clause not working both ways
I am displaying a json in a table, like so:
<tr ng-repeat="room in allRooms | orderBy: 'OpenTime'">
And I want to use an ng-if to display a button in a column, only if a certain condition is ...
0
votes
2answers
11 views
Date type field binding issue in angularJS
Here is my projectController:
(function () {
var app = angular.module("myApp");
var projectController = function ($scope, $location) {
var currentDate = new Date();
...
0
votes
0answers
6 views
Directive with element.on('click') within ng-if doesn't work
I use a directive on links to provide a modal login, if the user isn't logged in. And it works fine for all usecases until now. In a new case the directive is part of a ng-if section.
On the snippet ...
0
votes
0answers
34 views
Javascript - AngularJS
I am new to AngularJS, I have been trying to make a simple app just for test purposes.
I'm using ngRoute but I can't manage to make it work properly.
I have these routes:
/phones
/phones/:phoneid
...
0
votes
0answers
7 views
Angular directive: how to make sure all nested templates and partials loaded?
Suppose, I am making a custom Angular directive that has to examine and manipulate the DOM tree inside it (to be precise: the DOM tree under the element the directive is applied to). The right place ...
1
vote
1answer
5 views
How does $mdDialog work with promise and $scope?
I'm new to angular, trying to use angular material to create a popup dialog. I'm confused with the promise and $scope here. If I click the dialog button, console will show 'created' and then no window ...
1
vote
1answer
7 views
Merging frontend and backend for production
I have a web project, powered by Symfony2 for the RESTful API, and by AngularJS for the front. It seemed logical to divide the project in two subprojects : one for the backend, and the other one for ...
0
votes
1answer
18 views
Angular JS indefinite execution of a function called inside a ng-repeat
I am building an app using google's QPX express and I created a service to call the QPX web service.
I noticed that when I inspect certain functions, I see that they are executing indefinitely. The ...
2
votes
1answer
10 views
Is there a way to set for protractor a default StartPage?
I need to automate a scenario which triggers history back actions. So that i can follow that scenario, i need to have as startup page a certain URL.
Where do I have to set the startup page as ...
0
votes
2answers
21 views
AngularJS - Update nested object property inside array using $http
I have a JSON file which has an array of objects. Like this
[
{ "id": 1, "properties": { "name": "Sam", "color": "blue" } },
{ "id": 2, "properties": { "name": "George", "color": "green" } }
...
0
votes
0answers
8 views
When running selenium web tests - Chrome opens a blank window in the background
I am running some selenium tests using serenity framework.
When asserting for validation errors on the page
Chrome browser opens a blank window in the background and the focus is moved onto blank ...
0
votes
2answers
26 views
Binding http GET response with isolate scopes in ngRepeat
As the title implies, I'm trying to get some data from a database via an http get request and then display it in a list of divs with ngRepeat. I need to call a function on each repeated item of ...
0
votes
1answer
12 views
grunt cannot find compass command. Why not?
I am trying to set up a node.js server on CentOS 7 using grunt and yeoman, but I am getting an error saying that the compass command cannot be found. I read this other posting about a similar error, ...
0
votes
0answers
11 views
C3 bar chart with 3 variables
I'm trying to display chart like this one, with following data:
[{"name":"doctor","monetary":"on","number":57},{"name":"programmer","monetary":"non-monetary","number":15}]
but I can't group ...
-5
votes
1answer
29 views
Could anybody explain what these lines mean or how do they work please (marked as bold)?
angular.isUndefined(attr.isEnabled) && attr.$set('isEnabled', 'true');
sideMenuCtrl[$scope.side]
IonicModule
.directive('ionSideMenu', function() {
return {
restrict: ...
0
votes
0answers
5 views
Kendo DateTimePicker Not Handling UTC Offset
We are using the Kendo datetimepicker, implemented using the AngularJS directives:
<input type="text" kendo-date-time-picker k-ng-model="TheDateModel">
Where: TheDateModel = 2016-02-15 ...
0
votes
0answers
9 views
Angular post request doesnt pass preflight check even though rails server is configured to accept all requests
I am using an angularJS app to request a rails API. I send my http request from my angular controller but it seems the preflight request doesn't pass access control check :
...
1
vote
1answer
18 views
ng-view for multiple form load in single page application
I am trying to load different form based on user interaction in single page application. ng-view was helpful until i had to load/hide forms in different divs of same page.
div#1: it will have ...
0
votes
0answers
5 views
SignalR client specific with angularjs
So I am fairly new with signalR and had worked with it a bit with MVCs. Now I am using it in webapi with angularjs and am a bit confused or have forgotten of what I have done. I am using bearer tokens ...
-1
votes
1answer
15 views
Angular JS regarding populating dynamic row data in form
I need some help. I want to populate dynamic table's row data into a form when i clicked on the particular row.When i try this html elements are repeating along with data when i click on the table ...
1
vote
0answers
16 views
AngularJS : What to unit test and what to not
function post(url, data, headers) {
var config =
{
method: 'POST',
url: url,
postData: data,
headers: headers
};
return ...
0
votes
0answers
20 views
Angular ng-href javascript function
I need to set href to Javascript function. When I click it, nothing happens, but when I hover over link it displays:
...
0
votes
1answer
14 views
TypeError: Highcharts[h] is not a function
My Plnkr link: http://plnkr.co/edit/S0BKjrgxz564oCPs9nCw?p=preview
Any idea why I would be getting this error? Not sure where Highcharts[h] is...
Controller Code
(function() {
...
0
votes
0answers
11 views
Trying to parse localStorage (ngStorage) to ng-repeat
I've been playing around with AngularJS for a couple of days now and although some lightbulbs are starting to lightup i'm not sure why i cant use my localStorage variables just like my $scope ...
0
votes
0answers
4 views
Load node module with SystemJS and Karma in Angular 2
I'm building a web app using Angular 2, SystemJS, and Karma for tests.
I'm trying to load the node module ngrx/store in a test:
import {
it, describe, expect, beforeEach, inject
} from ...
0
votes
1answer
10 views
Checkbox group and only one required [ANGULAR]
I have checkbox group:
<div class="checkbox">
<input type="checkbox" name="zainteresowany1" ng-model="zainteresowany1">Stażem
</div>
<div class="checkbox">
<input ...
1
vote
2answers
22 views
Angular scope not updating when passed in object to function
I have a controller function which is called on double click of an item in an ng repeat:
$scope.likeUpdate = function(update) {
$http.post( $rootScope.apiURL + 'likeupdate', {
update_id : ...
0
votes
0answers
4 views
Spring MVC AngularJS No mapping found
I've been following the tutorial for integrating Spring Security with AngularJS, but it uses Spring Boot. I can get the tutorial examples working, but I need my app to run as a regular MVC application ...
0
votes
0answers
9 views
Angular + Bootstrap + Django: Mobile Images Not Showing
Has anyone ever experienced a phenomenon when angular + bootstrap + django result in missing images on mobile (not even an alt tag in their place)? Oddly, the images show up fine on desktop, but they ...
0
votes
0answers
5 views
Use Angular Interceptors in Protractor Tests to Fake Response
Is it possible to use Angular interceptors as an alternative to ngMock to fake responses in Protractor tests? ngMock works but requires angular-mocks.js to be included and I'd like to avoid that ...
-9
votes
1answer
34 views
please help me. what i have to do? [on hold]
<body dir="rtl" ng-app="ng">
<div id="panel" ng-controller="panel">
{{text}}
</div>
</body>
js
var ng = angular.module('ng',[]);
...
0
votes
0answers
14 views
AngularJS highlight filtered text in ng-repeat
I have a list which displays properties from a JSON object. I'm displaying strings as well as numbers. I'm trying to highlight the searched input while the user types. I've seen many examples online ...
1
vote
1answer
15 views
Get data from url using Angular js
Someone can help me to get data from this url:
http://carbono.utpl.edu.ec:8080/wscodigosqr/webresources/entidades.qrusuarios/userlogin?usuario=dimoreno
I tried this:
.service('Serv', ...
2
votes
2answers
19 views
Font Awesome icon inside of HTML input with Angular working
I am trying to make this, but not having much luck:
<input type="button" class="naviaBtn naviaBlue" ng-show="ppt.Globals.hasDebitCard" ng-click="alertShow = (alertShow == 2 ? -1 : 2)" ...
0
votes
0answers
13 views
AngularJS: Non-destructive, non-blocking form submission
problem
Assume I have a form with multiple inputs that bind to various properties of a view's data object. As I tab out ('blur') I want to persist that value to a save service and move on to the ...
0
votes
0answers
6 views
Use angular 1.5 component from module a in module b (using ES2015)
I'm trying to create a new setup for an app using jspm, systemjs and angular 1.5. I have a structure more or less like this:
src
common (pieces common to entire app, some services, images, etc)
...
1
vote
1answer
8 views
adding custom element to ngRepeat list
I am developing a mobile app using the cordova + onsenui + angularJs and there are special requirements for populating the ngRepeat list.
Some items could have additional parameters. In that case ...
0
votes
0answers
12 views
Missing modules after generation using Yeoman's generator-angular-fullstack
There's a question with almost the same title as mine with no answers here, and I can't comment to see if @Gabriel-Kunkel got anywhere with it. I was going to post an answer, but I saw StackOverflow ...
0
votes
1answer
5 views
Having sub directories under views using yo angular generator
So I have started yo angular for a new project and it's great, the only issue is that I like to structure my views and have partials etc, for example a great structure for me is something like the ...
0
votes
3answers
23 views
Nodejs not sending response to Angular?
I have a doozy that I can't figure out whats going on.
In Mongo, I do a document.find(), which returns an array of object/s - All good.
I'm then trying to send on two objects back to the Angular ...
2
votes
1answer
13 views
Spring REST call gives 302 redirect
I am using angularjs to make a REST call to my tomcat backend managed by Spring. But my server code never seems to get the call and the browser gets a 302 with "index.html" appended at the end of the ...
1
vote
1answer
27 views
Updating a single item in angular scope object
I am creating a like function for pictures on an Ionic app.
I can return a like count and true or false for if the request was to like or unlike a photo.
I have a function on my photos which calls a ...
-4
votes
0answers
13 views
How use and create database with php for ionic app [on hold]
How use and create database with php for ionic app
create application for ionic with php database for ionic
0
votes
0answers
17 views
dynamic factory angularjs (resolve data to controller)
I read an answer about "dynamic factory" from How to create Dynamic factory in Angular js?
It works great but some additional conditions required for my project make me tired.
conditions are simple.
...
0
votes
0answers
11 views
Angular $q promise Unit testing using Mocha, Chai, Sinon
I'm trying to get my simple angualr $q promise unit test to work. But I've been having problems getting it to work.
Here's my angular file.
app.controller('theCtrl', ['$scope', '$q', ...
0
votes
0answers
8 views
UNMET PEER DEPENDENCY generator-karma@>=0.9.0
I am installing version 5.6 of node.js on a CentOS 7 server with generator-angular, and am encountering the following error, in addition to some deprecation warnings:
UNMET PEER DEPENDENCY ...
0
votes
0answers
7 views
angular - freestanding version of ui-router urlMatcherFactory
I have a project that uses angular ui-router, but I don't actually need the router part. I use it almost exclusively for the $urlMatcherFactory for getting data from the url, such as this;
var params ...
2
votes
1answer
19 views
why does angularjs and jquery give different results for innerWidth
I am working on my first responsive site, using 3 testing devices:
htc desire 500 dual,
iphone6, and
my windows laptop.
And I am testing with various 'languages':
css media queries
jquery
...