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 applications are also frequently known as single-page ...
0
votes
0answers
10 views
How to get latitude and longitude from address in angularjs
I am trying to get latitude and longitude from address in angularjs controller.
Here is an example in javascript of something am trying to achieve in angularjs https://jsfiddle.net/alvaroAV/qn8bb8q5/
...
0
votes
0answers
9 views
Upload xls/xlsx file in a Node js server
I want to upload xls/xlsx file from a web application (html pages developed using Angular JS) into a Node js server. How do I save the uploaded files into server location?
0
votes
2answers
12 views
How to correctly pass data from Service to Controller
I am trying to send data from my http service to my controller. The service correctly gets the data but it doesn't get sent to the controller.
Now, I am aware that the query is done asynchronously ...
0
votes
1answer
4 views
need help understanding angular ui-router specifically passing mongodb data from state to state?
so I'm trying to pass my mongodb data from state to state using ui-router but having trouble making the links and controller as i'm making an app where users have a profile and are able to click on ...
0
votes
0answers
5 views
Angular/Bootstrap data-target not evaluating expression
I have in my jade/pug file:
div(ng-repeat='writing in user.clean_profile.writing_samples track by $index')
a(toggle target="collapse" data-target="{{\'#collapse\'+$index+1}}") Link {{$index+1}}
...
-1
votes
0answers
11 views
How to call one controller method from another controller in angular java script?
When I try to call one controller method from another controller in the angular Java script, an error occurs. I think something is missing there. If anyone has the complete method to do this, please ...
2
votes
1answer
11 views
Right way of using Angular Factories and Services for this
I'm looking for a sensible way of doing this.. kind of learning Angular as I go and I've got a bit confused..
I have a service
.service('Cameras', function(Camera){
var _list = [];
// public ...
0
votes
0answers
8 views
how to insert image path into sqlite and display that image using angularjs in cordova
myDB.transaction(function(transaction) {
transaction.executeSql('CREATE TABLE IF NOT EXISTS phonegap_pro (id integer primary key, img blob, desc text)', [],
0
votes
0answers
10 views
Enable Cors for Angular js in Spring Boot Application
I am Running Backend as Spring Boot Application at localhost:8080 While frontend with AngularJS at localhost/apply.For Authentication i am using native spring security.
If angular is running at same ...
0
votes
0answers
11 views
Angular Scope function is undefined on window load, but still works afterwards with button click
I've looked at many questions, however it's obviously something wrong with my specific case.
I'm new to Angular JS, and working on a project built by other people with very little documentation (...
0
votes
0answers
7 views
AngularJS ui-router: Can it tell me if it failed to load a view?
I've been working on some code to implement loading views based on language selection.
I'm using angular-translate with the angular-translate-loader-static-files extension. This allows the app to ...
1
vote
0answers
18 views
TypeError: undefined is not a constructor
I'm very new to Angular and I'm trying to figure much of this out still. I'm writing some tests using Angular 1.5.8 which I generated from the Yeoman Generator.
Specifically, I'm trying to figure ...
1
vote
1answer
18 views
Proper way to bind to data object in Angular 2 service?
I am building an angular 2 application. The documentation has changed quite a bit since the released which has caused confusion. The best I can do is explain what I am trying to do (Which was easy in ...
0
votes
1answer
18 views
10 sec + delay in displaying elements using ng-repeat in Angular JS
Below is the code that I am using to display sliders on the client side (number of sliders obtained from backed).
It takes about 2 sec to obtain slider objects from the backend and about 8 more ...
0
votes
1answer
26 views
AngularJS ng-repeat doesn work in Chrome
I know this question was asked already multiple times and may be considered as duplicate. But I did not find an answer and decided to create new question.
The problem is ng-repeat doesn't work ...
0
votes
0answers
6 views
How to using FCMPlugin in angularjs
I have using cordova-plugin-fcm
https://github.com/fechanique/cordova-plugin-fcm in my project.
It build on android project sucess.
But i don't know using FCMPlugin in code angularjs
Help me
0
votes
1answer
15 views
Can't enable CORS in Chrome
NOTICE: This works in Firefox but in Chrome not working. Why? What I miss?
When I try to run edit function in form it should get data via AngularJS.
var i;
var url = window.location.href;
var param =...
0
votes
1answer
19 views
AngularFire browser Refresh gives error page not Found
Scenario is,
Im new to AngularJS and making an AngularJS with AngularFire, I have defined my routing bye using $routeProvider ,see below
var appMainModule = angular.module('appMain', [ 'firebase','...
-1
votes
1answer
37 views
Angularjs Math formula?
Can someone enlighten me as to how to create math formulas with multiple operators for my Finance calculator? Here is the math formula i need to create:
( Amount x interest(0.05) ) + Amount = total ...
0
votes
1answer
11 views
Angular2 Material md-button Error
I saw earlier that Angular2 launched the RC5 so I decided to update one of my test apps to see the changes and how to adjust. This app is using Material2, I also updated it to Alpha 7.2, but I'm ...
0
votes
2answers
20 views
Cannot get ng-controller to work in angular app
I've just started learning web development on my own, and I've run into an issue where either my entire app or just a controller just won't cooperate.
In prototype.js, I declare the app:
var ...
0
votes
1answer
16 views
Alert input value of multiple inputs using an Angular repeater
I am using Angular to allow me to create as many inputs as needed but I would like to have a simple alert that will display the values of the inputs. I have been able to get the value if I don't use ...
0
votes
1answer
9 views
Admob is not working in my ionic app
I wanted to use Admob in one of my app but it is not working. It even does not show any java script error. Please let me know if i am doing something wrong.
This is my app.js file
// Ionic Starter ...
0
votes
0answers
7 views
gulp-webpack and ts-loader: Cannot find module
I have an NPM script running a Gulp task running gulp-webpack. I'm stumped why my build setup can't find a ts module. From project root, my app's entry file is at:
/src/homesMenuAngular/app/main.ts
...
0
votes
1answer
14 views
ngChange a bunch of dropdowns
So I need to entirely change a group of drop downs that appear based on the selection of one dropdown. I believe ngChange is the way to go about it, but I am not entirely sure how to change between ...
-1
votes
1answer
19 views
ANGULAR 1.5 controllers in diferent .js documents
I have an application with 2 modules 1 controller (for now) and one service.
Ive tried to put the module and configuration in a file like this: user.js
(function() {
'use strict';
var app =...
0
votes
0answers
6 views
plax.js works only when reloading
ok, here is the code:
In HTML:
<div class="col-xs-12" id="seccionCont10">
<div id="seccionCont10texto" class="col-xs-6">
<div class="contTextoNegro">Tus <p class="...
1
vote
2answers
13 views
Angular post request not working not working
Here is my module:
angular.module('ngDetails', ['])
.constant('API', 'http://myserver.com/dir/api')
.controller('carDetails', carDetails)
Here is my controller:
function carDetails($scope, ...
0
votes
1answer
25 views
Sending data from angular to express nodejs server running on different domain
So I am trying to send some data I have in angular to my nodejs server. Let me start with my code:
index.html
<body ng-app="starter">
<ion-pane>
<ion-header-bar ...
0
votes
0answers
6 views
AngularJS ui.calendar next and prev events
Is there a way of handling the next month and prev month events in a ui.calendar directive?
This is my config:
vm.config = _.assign({
height: 450,
editable: true,
header: {
...
0
votes
1answer
17 views
Angular.js ng-click not registering ng-model on form
So for some reason I am only getting the password on click. I've tried moving the div around. I used a div instead of a form. Been trying to figure this out. Please Help.
<div class="container"&...
0
votes
0answers
19 views
Angular material ng-model binding not updating when changed
I have a search functionality from which user can select values in different drop downs and click on filter button. Once user clicks on the search functionality, the values in the first drop down (...
1
vote
0answers
9 views
Passing QueryParams to UI.Router's ui-sref
Give the following state:
.$stateProvider.state( 'dashboard', {
url: '/home?layout',
templateProvider: function($templateFactory, $state){
....
}
})
...when using ui-sref in a ...
0
votes
0answers
11 views
Ng-animate - leaving element updates with entering element's data
Let's say we have a user-detail view on the right and a user list on the left. Clicking on a user calls a ui-router state resolve function which populates a UserActiveModel, and once complete the ui-...
0
votes
2answers
5 views
AngularJS ui-grid rendering issues with multiple grids on a page
I have a pages that is currently running 4 grids. The main grid that is loaded with the page is users, and then 3 more grids are loaded in a Modal each in it's own tab. The issue that i have been ...
0
votes
0answers
22 views
Load a message depending on login or logout
I'm trying to load a message which depends on whether I sign or close session , but it happens or outgoing message only appears in both cases, or the input message .
login.js
angular.module(`...
1
vote
1answer
12 views
Angular 2 RC4 + Router Path Variables with special characters
Can Any one Suggest me how we can call parameters (contains special characters) from the url's. below is my present code to call param.
ngOnInit() {
this.route.params.subscribe(params => {...
0
votes
0answers
7 views
Angular Kendo Grid: setting api params pageSize, page
I have managed to get Angular Kendo to display some of my records (from a local json for now). When I switch it to the API, they are expecting
?pagesize=5&offset=10
but what I'm delivering ...
0
votes
1answer
11 views
AngularJS dynamic SVG displaying
I want to draw svg from data I got in scope. But when it renders it partically empty or NaN for some reason.
Also, I got errors like here right after render
How to prevent render directive until ...
1
vote
1answer
30 views
Angular Transclude issue
How can I call an array by i rather than by # during a repeated transclude? With my code below, the repeat builds my list with the proper number of items in the array, but the data returned for x ...
0
votes
2answers
19 views
Send ID over to angularjs - so the true content appears
I am storing an Id in a hidden field; it can also be another number such as 2, 3, 4 or 59. It must take the Id coming from the hidden field and must send it over to my opgaver.js file. where it will ...
-2
votes
1answer
20 views
Adding relation IDs with MongoDB
I'm developing a MEAN Stack CRM System, where I have added 10 000 organizations, and 13 000 contactpersons.
The name of the contactperson's organization is specified in each contactperson document. ...
0
votes
0answers
7 views
Highcharts-ng charts[i].getSVGForLocalExport is not a function
I'm trying to export multiple charts as a single pdf, client side, as shown here: http://jsfiddle.net/highcharts/eatqca8n/ but I'm getting an error that getSVGForLocalExport is not a function. Is this ...
1
vote
0answers
7 views
Error with using zeppelin z.put function when using spark and kafka
I am trying to use spark, kafka in zeppelin notebook with the code below.
%pyspark
import pyspark
from pyspark.streaming.kafka import KafkaUtils
from pyspark.streaming import StreamingContext
...
0
votes
1answer
29 views
Angular function in controller not getting called after promise
I am building an Angular 1.5 app using the component structure. After the promise comes back from the $http call in the service, I am trying to call another function to filter the dataset before it is ...
1
vote
0answers
14 views
Why does the transform method of the custom pipe fire so many times in Angular2?
Why does the transform method of the custom pipe fire as many times as it does when used inside this angular2 loop? I expect it to fire only twice.
Many thanks!
Result in the browser's console
app....
0
votes
0answers
18 views
ng-admin - hide label when no data comes back
I'm using ng-admin for the UI of my REST API services, and trying to hide the labels whenever the API returns no data. For instance I have the below referenced_list which constructs a table with an ...
0
votes
0answers
9 views
cant import routing modules in angular 2
i have tried importing routing classes like this :
import {Route, RouterModule} from '@angular/router';
but it seems they don't exist to be more specific "myapp/node_modules/Angular/router has no ...
0
votes
0answers
8 views
Double click on a map object in amMaps using AngularJS
I am working on an application which is using ammaps. I have a number of points located on the map based on longitude and latitude value. I have achieved single click functionality by using the ...
0
votes
0answers
10 views
How can I log to Google Cloud Logging from an AngularJS application?
I'd like to be able to view client side errors in Google Cloud Log viewer. Is it possible to create log entries from an AngularJS application and if so how?