Tagged Questions
0
votes
0answers
4 views
Google map response return No 'Access-control-allow-origin' error in MEAN stack app
I'm trying to get a list of nearby Places like restaurants etc from Google map but I'm getting this error
XMLHttpRequest cannot load https://maps.googleapis.com/maps/api/place/nearbysearch/json?...
0
votes
0answers
12 views
load pop up with loading a site
this is how when I download since then my pop up rather be on the side it must not be such that you have to click on something but against just appear by itself.
the problem is right now, that it in ...
0
votes
1answer
8 views
Unhandled Promise rejection: No provider for AuthHttp! ; Zone: angular in angular2-jwt
dashboard.service.ts
import { Injectable } from '@angular/core';
import { Http, Response, Headers, RequestOptions } from '@angular/http';
import { Observable } from 'rxjs/Observable';
import { ...
0
votes
0answers
29 views
My angular js app is loading linked JS scripts twice [on hold]
My angular JS 1.6.1 app loads JS assets twice from the same script tag. Is there a way i can reduce it to optimize my load time of my web application?
Adding code as per the request comment
...
1
vote
1answer
31 views
Share data between controllers AngularJs with Services
Background
I am making Service which has a list to be shared between two controllers. To start I followed this tutorial on Services:
https://thinkster.io/a-better-way-to-learn-angularjs/services
...
0
votes
1answer
25 views
Issue with angular translation in custom filter
I am trying to create a filter for showing the elapsed date and time in angular js and is working fine. Now I am trying to add translation to it but that time its showing the keys instead of the ...
1
vote
1answer
31 views
Retrieving data from server is slow in AngularJS application
I am building a web application in which i have to make a lot of $http requests to server. i am using AngularJS in front-end and ExpressJS in back-end. i am making $http requests something like this :
...
0
votes
0answers
27 views
Content of image not being displayed
I have a Blob of an image which I need to display in browser. The code provided below opens the image but shows some Mandarin scripts on the window.
Code:
var url="http://....link..../downloadFile?...
-1
votes
1answer
43 views
Update null obects in a json array
Update null objects in a json array.
I had tried using map but it didn't updated for all the json objects
I had a json array like below
var response =
{
"code": null,
"message": "Total 1 ...
0
votes
0answers
23 views
Expanding Collapsing one at a time
I would like to know in the provided plunkr, how to expand only one at a time. When one is expanded the other one collapses. Here is the plunkr - https://plnkr.co/edit/LzJKGdaQJBNsgmUkOYti?p=preview
...
0
votes
0answers
15 views
generating power point files in angularJs 2
I have a requirement to create power-point files in my app written in Angular2, is there any library available to generate power point files for Angular2, I should be able to export data not only in ...
0
votes
1answer
24 views
How to select and upload file in ionic
How to upload pdf file on server using $cordovaFileTransfer plugin.
I have a below input field
<input type="file" onchange="angular.element(this).scope().fileNameChanged(this)">
How to get ...
0
votes
0answers
15 views
How to redirect 301 CORS policy handle in angularjs
I am working on a project that uses api in angularjs.
I send http request to get user data and show on my html page
For example
www.example/users/get_user
This is working fine
But now api call ...
0
votes
2answers
39 views
.split() and .replace() a string value to filter out the desired text in JavaScript
I am trying to filter out the hashtags in a text string, by splitting it, and removing unwanted HTML tags.
I'm not getting the correct output, and I am not too sure where I am making my mistake, and ...
0
votes
1answer
37 views
How to Save ng-repeat $index to DB ( rownumber: 1.1 ,1.2,1.3) using angularjs
I am working on index page of book functionality
i.e : 1.1
1.1.1
1.2
1.2.1
where 1.1 & 1.2 is parent ng-repeat &
1.1.1 & 1.1.2 is child ng-reapet
now i want to ...
0
votes
1answer
25 views
CORS error :Request header field Authorization is not allowed by Access-Control-Allow-Headers in preflight response
I am trying to send the request from one localhost port to the another. I am using angularjs on the frontend and node on the backend.
Since it is CORS request, In node.js, i am using
res.header('...
1
vote
3answers
30 views
Iterate an object to find which are the missing numbers and assign a value to it
I have a scenario where I need to iterate over an object which is:
var rating = {
"1": "75%",
"2": "20%",
"3": "10%"
}
and i need to iterate over the rating object and among 1-5 if there ...
0
votes
0answers
14 views
Using Django URLs with AngularJs routeProvider
for a project, I am using Django on the back-end and AngularJs on the front end.
Basically, what I want is to run the Angular app only when the url starts with projectkeeper/.
In other words, lets ...
0
votes
0answers
32 views
AngularJS Controller Inheritance Patterns?
I have below controller code
myApp.controller('SteppersCtrl', ['$scope', '$http',
, function ($scope, $http) {
var SteppersCtrl= (function () {
function SteppersCtrl($mdStepper, $...
2
votes
5answers
34 views
How to reload a http.get request after performing a function
I am trying to delete a post from a list. The delete function is performing by passing serially to a delete function showed below.
$scope.go = function(ref) {
$http.get("api/phone_recev.php?id="+...
-2
votes
0answers
15 views
Convert HTML with CSS and image data into pdf using JavaScript/ jQuery/ Angular JS
Friends, I need to convert HTML with CSS and image data into PDF using JavaScript/ jQuery/ Angular JS. There are some libraries but it gives output only html not with css/image.
Can you suggest me any ...
0
votes
2answers
22 views
dynamic bootstrap progress bar in angularJS
I am creating a web app in which i want to show progress bar depend on the data from my sql server,
for example i am getting my data like(40) in my progress bar width of my progress bar sould be 40% ...
0
votes
1answer
20 views
How to add cluster marker to google maps in angularjs
I am trying to add cluster marker to google maps in angularjs.
I have already included the js file (https://github.com/googlemaps/js-marker-clusterer/blob/gh-pages/src/markerclusterer.js) and the ...
0
votes
2answers
43 views
how to use $scope inside .on click event?
I'm very new to Angular js and am testing a few functions with a simple data-parser project (Plunkr). Right now, I'm having trouble accessing $scope variable within a jQuery on click event. I would ...
0
votes
0answers
14 views
Angularjs Ui-Bootstrap modal popup inside specified element
i have a problem with my code , this code is about append a modal to element with specific id. so that when button clicked ,this modal popup will showed inside div element with id="forModal" (div ...
0
votes
0answers
15 views
Attaching pdf generated by jspdf to email nodejs
I am trying to send a pdf generated in my applicaitons frontend (angular) using jspdf to my backend (nodejs + express) so that it can be attached to an email. I can succesfully save the pdf on the ...
0
votes
1answer
27 views
AngularJS : ng-model in dynamic drop downs inside table not working
I am trying to create dynamic rows based on button click. The rows have drop down boxes. The issue is when I add new row and select an option in the new row the options which I selected in previous ...
0
votes
1answer
35 views
Where does the index.html redirect to? [Moodle Mobile][Javascript]
My current tasked with adding a QR code generation functionality to Moodle Mobile's source code to add more functions. The source code that I use is from this site.
As I don't have any experience in ...
1
vote
1answer
11 views
magic space between image in pdfMake
When I'm trying to locate images in 2 colomns, I get a space between them.
My docDefinition:
var dd = {
pageSize: 'A4',
pageOrientation: 'landscape',
pageMargins: [ 0, 0, 0, 0 ],
...
1
vote
1answer
25 views
Pass data back to controller from directive
The structure of my code is I have a parent "component" with a list component inside of that. I want to click edit on an item inside the list component and have that item be passed back to a function ...
0
votes
1answer
26 views
Wait for service when calling function in controller
I'm a Javascript beginner and trying to understand promises and asynchrony but it has been hard.
I have this function in my service:
`main.service.js
function getTableauUrl() {
$http.get(...
1
vote
0answers
21 views
Ensuring minification safety in Angularjs
I am currently working on an Angularjs based website, but when I try to host it online, I get the error:
Error: [$injector:unpr] Unknown provider: tProvider <- t
I don't receive that error when I ...
0
votes
1answer
22 views
Angular 1.5 custom validation directive for ng-messages
I'm working on custom directive for ng-messages where with adding one directive "custom-validation" to input field:
<input name="inputName" ng-model="vm.inputName" custom-validation="vm....
0
votes
0answers
17 views
Deploying an angularjs based app with meteorjs
I am making a meteorjs web app but the code within the meteorjs is based off of Angularjs. When I deploy the code locally, everything I want my code to do works, however, when I type "meteor deploy" ...
2
votes
0answers
14 views
Angular Bootstrap Tooltip Dynamic Content
I am making a cart application in Angular using Angular Bootstrap.
When hovering over the cart icon a tooltip should appear. The tooltip's content should change based on if the item is already in the ...
0
votes
1answer
29 views
How can I update my view model from chained promises?
I'm quite new to promises. I have a hard time trying to update an object used in my view from 2 chained promises :
function Test($resource, FC, UserDetailsService) {
'ngInject';
var self = ...
0
votes
1answer
18 views
Angularjs Class Confirm button
I am trying to create a "confirm" button for users of my website to see when they click on a button, and I am using an angularJS class. My code is as follows:
class TodosListCtrl {
constructor($...
0
votes
0answers
24 views
AngularJs, How to edit $scope values in other div using the same controller with factory
I would like to use two different divs one contains a form and other contains repeat for the $scope values. Those two divs needs to use the same controller. However I am not able to share data in ...
1
vote
0answers
33 views
How to manage id's while removing
I'm working on an Angular application.
I'd like to remove objects from my json database through my service, the problem is while creating my database, I gave each object an ID attribute manually and ...
0
votes
0answers
25 views
How to handle jQuery(window).scroll functions efficiently in jQuery?
This is my current code and feels like it's not very efficient and would perhaps be better if Timer/Timeout is used. However, I'm lost as to how to go about it.
Could someone help? Not very efficient ...
1
vote
0answers
28 views
How to make dice not overlap when being thrown?
I'm making a mobile app, and a part of it is being able to throw dice.
I'm working with Ionic as mobile framework and using angular and jquery to make the dice roll. The problem is when i roll ...
0
votes
2answers
41 views
Share data between controllers using Service AngularJs 1.6.1
Background
I am making a census app about gnomes. This app shows a list of all gnomes and allows you to filter it.
Problem
The problem is that the filter is not working! My gnome-filter controller ...
0
votes
0answers
20 views
How to change state of nested formly form to readonly on click of a button
My problem is pretty straight forward.
Things that I have.
-- A form (formly) which I made using the data (JSON) received form the backend.
-- The form is going to be Multilevel Nested (currently ...
1
vote
1answer
11 views
Inheritance scope using ui.router to filter data in ng-repeat [Angular1.5]
I have a problem probably with inheritance scope using ui.router. I'm creating a small application something like addressbook. I want to have an input in navbar which allow me to filter addresses on ...
0
votes
1answer
37 views
Why is $scope not working in Angular 1.6.1?
Background
After following the AngularJS tutorial on codeSchool and reading some StackOverflow questions, I decided to start using $scope in order to avoid the hassle of having to define a var self = ...
0
votes
0answers
15 views
Screen flicker in ng-repeat
My AngularJS/Material app seems to flicker on an iPad, IE and Firefox where I've implemented an image slider on a timer by following this link, which happens when the image is changed in the slider ...
0
votes
2answers
24 views
AngularJS gives 'Cannot get /page' when routing
I'm trying to use angular-route to perform routing on my angularJS app. However, when I try to load /sales in the browser nothing appears (I tried with '#' and I get the same result). Here's my main....
0
votes
2answers
21 views
Add new text to div every time button is clicked
I've been looking into AngularJS a bit, and I want to know it there's a way - without making the page refresh, to keep adding more text to a div every time the button is pressed, using AngularJS? I ...
0
votes
0answers
12 views
Angular Material DateTimePicker not rendering the Calender
I am using DateTimePicker, I followed the demo and included in my Project but it is not rendering the calendar to choose the date and also it's lagging, For the record, I double checked the Includes ...
0
votes
0answers
16 views
ui-grid table PDF export
I need to export ui-grid table, I did all like this http://ui-grid.info/docs/#/tutorial/312_exporting_data_complex, in result, cvc export works, but pdf export doesn't work.
In cosole I get error: "...