Tagged Questions
AngularJS (a.k.a. AngularJS 1) 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 applications are also frequently known as ...
0
votes
1answer
13 views
selected date input from user always stored as “1970” in MySQL
I have a problem regarding saving the time that the user selects in the input[date] field with AngularJS and posting to Mysql DB.
In the console when i log the data object that contains all input ...
0
votes
1answer
13 views
ng-repeat errors. Can't read property of undefined
I have two errors saying: Cannot read property 'active' of undefined and Cannot read property 'boss' of undefined while I'm trying to use ng-repeat over my array of users.
In the controller I'm using ...
0
votes
0answers
9 views
Angularjs:open on focus feature to my calendar
How can i add open on focus feature(similar as Microsoft windows 7 calendar) to my calendar as given in demo where we using angular materiel version1.0.1, please help me with solution.
Thanks In ...
0
votes
0answers
5 views
Ionic open android camera with ng-file-upload input button
I'm making an app using Ionic. It's almost done, but there is one problem. I am using ng-file-upload to upload files from the device. From iOS it asks if I want to upload from my gallery, or take a ...
0
votes
0answers
11 views
Getting the URL entered in browser before redirection in AngularJS?
I'm trying to get the params of the URL originally entered in the browser. But angular "redirects" me automatically to '/'
For example, I enter this URL : http://localhost:9080/#/test?param1=en&...
0
votes
0answers
10 views
AngularJS + UI Router Testing routes
I am trying to do some testing and I'm starting with the routing portion.
I have a main view like:
<div class="container-fluid text-center">
<h1>Cool App</h1>
<button class="...
0
votes
1answer
21 views
Angular ngroute: controllers doesnt's work
I want to use ngroute module to route my application with different themes, in the same page, using this example:
<html>
<head>
<title>Angular JS Views</title&...
1
vote
1answer
16 views
How to retain scope value, when scope is destroyed between link and controller
I have a scenario, where there are two tabs on a page: Is there a way to retain the values of x ?
// i have tried with $rootscope.$on, and it worked. Is there any other way to implement it?
...
0
votes
0answers
10 views
angularjs + spring rest HttpSession issue
I have developed an application with Angularjs as frontend and spring rest on the backend. I tried to use HttpSession for login implementation.
class SessionHandler{
public static HttpSession ...
0
votes
1answer
13 views
ng-repeat doesn't render (unless any scope variable changes)
I'm running into a very frustrating problem that I can't figure out and I don't know enough to debug it myself.
Basically, I have an extremely simple directive that prints "1,2,3" using an ng-repeat:
...
0
votes
2answers
18 views
AngularJS: Get dynamic array from filter then use it into a forEach method
I have the following table based in this example (try to use the 'search' input)
<tr data-ng-repeat="product in filteredArray=(products | filter:findProducts)">
<td>{{$index+1}}</...
0
votes
0answers
5 views
How to use variables in angular translate pluralization?
I am trying to make the angular translate pluralization work with $scope variables. Everything works fine when the numbers are hard-coded in the HTML, but things get buggy when I am using my model's ...
0
votes
0answers
11 views
How To Access Javascript Functions from a Custom Kendo UI DataSource
I'm using Kendo UI with AngularJS 1.x. I'm also using Firebase with the AngularFire library. Because I'm using Firebase, I decided to extend the Kendo UI DataSource which I named kendo.data....
2
votes
1answer
20 views
How do I fix the time difference between MomentJS and Asp.net Core
I have a date that is set in my UI from this angularjs date picker. It is set as a moment.js object and it includes a GMT offset for my timezone (Eastern). When I submit the moment object back to my ...
0
votes
0answers
6 views
How to override angular material md breakpoints
I am trying override the angular material breakpoints,
$layout-breakpoint-md: 1280px !default;
How to override the 1280px to 1240px in the without changing angular material src.
Any ...
0
votes
0answers
6 views
How do I determine what's causing “Styles Invalidated” in iOS Safari?
I'm chasing down a performance issue when scrolling on iOS. On both touchstart and touchend, Safari is invalidating and then recalculating styles, which results in a slight delay before scrolling ...
1
vote
1answer
16 views
How to use angularjs $resource with php script
i have question related to PHP - AngularJs, so i have simple PHP script
<?php
require_once '../../dbConnect.php';
$driverId = $_POST['driverId'];
if (isset($_POST['driverId'])) {
$sql =...
0
votes
0answers
7 views
Importing modules in Ionic
i'm trying to import the bootstrap from angular library in ionic application
app.module.ts
import { bootstrap } from '@angular/platform/browser';
But when i try to run the app i get this error:
...
0
votes
1answer
16 views
How to connect from angular to express server running on the same machine?
I am very new to express (and backend), and I am learning. So I mounted an express server on my machine by running express and npm install, and then overwriting the app.js with a simple code that ...
0
votes
0answers
8 views
Angular material different background themes
Is there any way to achieve different background colors for different themes?
I have for a default theme:
.backgroundPalette('brown')
but for this situations all other small elements for example ...
0
votes
2answers
20 views
Change display text based upon value
I am displaying Errors on my Html page using Angular JS. The problem is I am receiving only error codes from the HTML . What are the various ways in which i can change the error code to the the Error ...
0
votes
0answers
8 views
Ruby on Rails / Angular / Javascript Clear All Cookies from iframe
I have a ruby on rails app that utilizes an Angular front-end app.
One portion of the app utilizes an iframe to display another site that we don't control. We'd like to be able to clear all cookies ...
-2
votes
0answers
12 views
Get facebook page posts with image
I'm trying to build a website with AngularJS, and want to use a page as a database for articles, I know I'll need to use the Graph api, but how to get all posts with their pictures?
and how to ...
0
votes
0answers
5 views
ionic update platform removes Cordova build from project
Ionic by default adds iOS platform 4.1.1 to the project. But for the urbanairship-cordova plugin requires 4.3.0. It throws below message,
"Plugin doesn't support this project's cordova-ios version. ...
0
votes
0answers
28 views
Random # getting set in URL
Issue
I am trying to use the UI-Router in my AngularJS application and I'm seeing a random # inside the URL which is messing everything up.
So I have my index.html which is the single page inside ...
0
votes
0answers
17 views
Changing content in Angular UI Bootstrap modal
I'm trying to have a counter in my Bootstrap UI modal, but I'm having some difficulty doing so. The code looks something like this:
var openSessionWarningModal = function () {
var markup = '<...
0
votes
1answer
32 views
Ng-repeat without freezing UI on over 12k records
i have over 12k images mostly 10x10 size converted to base64 in a json array,
and i have the size of the image in the json and x,y coordinates where i want to show the image on the screen,
the json ...
0
votes
1answer
15 views
AngularJs 1 routing not working
my folder structure is:
-ngTest
--Scripts(all js files)
--index.html
--main.js
--partialView.html
index.html code is as follows:
<!DOCTYPE html>
<html ng-app="...
0
votes
1answer
12 views
checkbox input ng-model is not binding to form object
For some reason, ng-model="episodeValue" not binding to the form object. It is a child of <form>. Any ideas why? I would like to keep this a primitive if possible.
<label>
...
0
votes
0answers
3 views
Dynamic cordinaties in iframe in Angular Js
Hi I am implementing google Maps and I am getting dynamic longitude and latitude. I am using iframe but when I write something like this
<iframe width="100%" height="250" frameborder="0" ...
0
votes
1answer
12 views
how do you animate a d3 chart title?
I'm tryinf to make a pie chart using angular-nvd3 - the char works and is animated, but I want to animate the percentage in the "title". So, as the char animates, the percentage will go up. any ...
0
votes
1answer
25 views
adding items to an array in async call does not not update angular 1.5.8 view
Plunkr here:
https://plnkr.co/edit/aWBE55?p=preview
Let's say I have a view like this:
<body>
<div ng-app="myApp">
<div ng-controller="myAppController as app" >
<...
0
votes
0answers
8 views
Does ADAL JS support Implicit flow for adfs 2016?
I am trying to implement implictit flow in angular js using the adal js, but it fetches only the id token as the login is performed only with the ID token, I could also seeing statements to upload the ...
1
vote
0answers
13 views
AngularJS Help - User / Data driven UI Load data before finishing controller
So I have searched for multiple results online through StackOverflow and haven't really found the answer I am looking for. I am trying put together my main UI page with my AngularJS controller. What I ...
0
votes
0answers
11 views
Migrate to angular 2 - Using existing angular 1 libraries
I have an existing angular 1 project I want to migrate to angular 2.
The project is kind of big and I have some 3rd party libraries which are written in angular 1. I assume some of the big libraries ...
1
vote
1answer
28 views
TypeError: Cannot read property 'push' of undefined - AngularJS
I'm "pushing" a new event to the vm.events object and I keep getting the TypeError: Cannot read property 'push' of undefined error.
I spent hours on this and I don't see what is undefined exactly, ...
0
votes
1answer
15 views
Understanding Angular layout while using ng-repeat
I have the following code in one of my angular html files. I am trying to get div elements adjacent to each other with ng-repeat in a carousel.
Here is what I did so far.
<div class="carousel-...
0
votes
0answers
30 views
How to use track by using angularJs directive ng-repeat?
I have a data from backend userListbut its not displaying in table any idea what is implemented wrong in below code using ng-repeat.
main.html
<tr ng-repeat="user in userList track by $index"&...
1
vote
0answers
12 views
Why D3 events that deal AngularJS models does not have effect in binding?
Consider the following controller of Angular JS (1.5.8). This project uses also WebCola 3.1.3 and d3 3.4.11.
When I try to change any property of my $scope from inside a d3 callback handler function, ...
-1
votes
2answers
35 views
Why am i getting this error in the angular.min.js
Hey after installing angular i made a simple routing script and for some reason the console is saying there is an error in the angular.min.js and i do not know why becuse i got it directly from the ...
-1
votes
1answer
18 views
How to assign a value from expression to data attribute in AngularJS
In below sample piece of code, how do i assign data returned from expression {{(results | filter: myFilter)}} to data attribute instead of results.
<img ng-json-export-excel data="results" src=../...
1
vote
2answers
8 views
When debuggin with Protractor, how how do I get the original selector used when element fails to find the DOM node?
I'm trying to debug a test flow in an Angular (1.x) app that involves a number of actions across several pages. At some point, Protractor throws a "could not find element" error. It would be great ...
0
votes
2answers
12 views
Load first json object by default - Angular
I'm hoping this is an easy question to answer...
I'm trying to create a table that loads my json, then be able to click a row and load more details that pertain to the json object. When you click a ...
1
vote
0answers
14 views
Globally remove and selectively add tabindex?
Our product owners would like the tabbing between elements on the page to be more useful. Currently, when you tab through items, you are also tabbing through things that can have focus like text links....
0
votes
0answers
17 views
Z-index backdrop not working
I'm using the $ionicBackdrop.retain (); and $ ionicBackdrop.release (); to appear the fade when opening my floating menu (I'm using the ng-material-floating-button)
However, I can not leave the menu ...
0
votes
2answers
15 views
UI router - Set up outside login page
I am trying to modify the blur-admin project adding a login page with its own controller.
So I created a controller folder inside the pages folder called demoadmin.login.
The login is working well, ...
0
votes
0answers
11 views
Uknown build error from my config.xml file
Error :
** BUILD FAILED **
The following build commands failed: CompileAssetCatalog
build/emulator/Celebrity\ Fitness.app Celebrity\
Fitness/Images.xcassets (1 failure) Error: Error code ...
-1
votes
0answers
10 views
How to do scrolling with primeNG charts
Anyone has any luck, scrolling a line chart, programmatically?
Not finding the API to do that
0
votes
1answer
15 views
Intercept URL parameters and store them in a service
I'm trying to intercept the entered URL, getting its parameters, storing them in a service (that can be used by other services) then redirecting to /.
var config = function (AppConfig, $...
0
votes
0answers
9 views
IE and Dropdown with multiple select
When using IE 10 and above, but not Edge, subsequent loads to a dropdown list seem to disable the dropdown. this does not happen in chrome.
All the data is in an array and the array is rebuilt from ...