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
1answer
4 views
angular: form input to update section of nested json file
Using angular I want my form input to update the 'replied' section of a nested json file. When the form submit button is clicked I want the function add() to push the users first name, last name, and ...
0
votes
0answers
3 views
ngmap for google maps v3 does not work on internet explorer 11
I am trying to use ngMap in my application but it gives this error on internet explorer 11:
"0x80070005 - JavaScript runtime error: Access is denied."
But it works in google chrome without any ...
1
vote
1answer
11 views
Mock factory on controller test
this is my controller:
angular
.module('studentsApp')
.controller('StudentsController', StudentsController);
function StudentsController($scope, StudentsFactory) {
$scope.students = [];
$...
0
votes
0answers
8 views
Display the right value from API result - AngularJS Internationalization
I'm making a huge application running under AngularJS and getting data from an API. i18n module I'm using is :
angular-translate
I fell in front of a problematic that I haven't found a solution yet, ...
2
votes
0answers
17 views
Angular $httpProvider.interceptor not adding header to request
I have what I thought was a very simple http interceptor. It is not working. Here is the code:
$httpProvider.interceptors.push(['$q', '$cookies', function($q, $cookies) {
return {
request: ...
-1
votes
0answers
25 views
How to refactor jQuery to Angularjs
I am trying to convert some jquery code to angularjs and was wondering if I can get some help in understanding how to refactor the below line of code into angularjs. Thanks.
$(function() { $('div#big ...
0
votes
0answers
6 views
Get feature.properties of a Geojson from an onEachFeature and set it in a modal
i have an issue in getting value from a bind popup, all i want is when a user show up the modal, some of the properties should be inserted automatically,
I have defined ouvragegid and some other ...
0
votes
1answer
11 views
How to $watch dynamically created ng-model in angularjs
Below is my HTML code.
<div class="col-md-6">
<div class="col-sm-12" ng-repeat='department in vm.otherDepartments'>
<label class=...
0
votes
0answers
7 views
how to send the client login data to the server using angularjs
I'm working on project which i need the client to send the data to the server
using my server that has some users that only allowed to log in the problem
that I can't send this information to my sever
...
1
vote
2answers
13 views
send https request from angular to nodejs. Can't send any data
So first I have my angular app:
var app = angular.module('app', []);
angular.module('app.controllers', []);
app.config(function($httpProvider){
delete $httpProvider.defaults.headers.common['X-...
0
votes
0answers
5 views
How to fetch data according with dropdown selected values in angularjs ng-options?
Here itemoptions having all the details of items, i want to to use ng-repeat instaed of ng-options. and i have to fetch that corresponding selected value details in text area, is it possible?
...
0
votes
0answers
13 views
“Spreadsheet app is not defined”- in angular js
I want to read the data from the google spreadsheet.so i create the sheet in google drive and i copy the link, then i embed this link with my html using iframe.I got this error while running the below ...
0
votes
0answers
6 views
cannot npm install karma-ng-html2js-preprocessor
I have found out an annoying problem about the captioned module.
When I install karma-ng-html2js-preprocessor, it always ends in the following error:
>[email protected] install /Library/WebServer/...
0
votes
0answers
6 views
Map blinks (reloads?) when dragging - ng-view and angular-leaflet-directive
I'm a newbie in angular and I'm using the angularjs-leaflet-directive (from tombatossals) to include some map functionality.
I just want to combine standard ng-view routing to move the map into a ...
0
votes
1answer
21 views
ng-click and ng-change both not calling the function for CHECKBOX
<div id="funds">
<table border="0" style="width:100%;">
<tbody>
<tr ng-repeat="parent in vm.fundList">
<td align="left" valign="top" ...
3
votes
1answer
21 views
How to make angularJS controller be active at all times?
I am developing an angularJS application where my geocordinates from the device are taken and sent to my REST service every few seconds. Code for geo coordinates sending is located in just one ...
0
votes
0answers
2 views
ChromeVox jumps 2 steps when using input type range
I want to use input type "range" to make accessible rating input for a restaurant reviewer. However when I try to test the page with ChromeVox screen reader the value jumps 2 instead 1, even though ...
0
votes
0answers
9 views
UI Router query parameters breaking search
I set UI Router up to have query parameters in the url, but when I did that it broke the search functionality on my app.
In a very condensed version of my code, it looks like this:
state('search', ...
0
votes
1answer
25 views
Angularjs ng-repeat : how to display an array of object
I need to display this values of an property inside an json object with ng-repeat.
"id_products" : [5730827476402176: 2, 5173045979250688: 1, 5735995932672000: 2]
I am using ng-repeat on <tr> ...
0
votes
0answers
6 views
how to make this loop in angular js to find outerWidth for multiple element consist of same class name
i have the code in jquery. but i am not expert in angular js to convert this.
var maxWidth = Math.max.apply( null, $( '.ui-grid-cell, .ui-grid-header-cell' ).map( function () {
return $( ...
1
vote
1answer
16 views
Getting the proper URL in an angular project
I have a working Js plugin thats written in jQuery. For my plugin to work, I need to get the URL, but without the anchor tag that references an element by id. That is, only getting http://example.com/...
0
votes
0answers
11 views
Prerender with Anguar UI Router not rendering root page dynamic content
I have prerender working and running for all pages except the root(home) page.
For example:
http://www.example.com/?_escaped_fragment_=
doesn't render the dynamic data. All other pages works like
...
-1
votes
1answer
13 views
AngularJS error: Module 'ngCsv' is not available
I have two computers running the identical code pulled from github. Both computers are running on Ubuntu 16 and everything was fine until a new dependency (ngCsv) was added to the code. Since then, I ...
0
votes
1answer
14 views
Angular 1.5, response status on error i s alaways -1
I'm facing an issue when calling API, let me explain architecture first.
Whole font-end application os AngularJS 1.5 based, hosted on domains like below:
app1.mydomain.com, app2.mydomain.com, appN....
0
votes
0answers
16 views
AngularJS orderby sorts number and dates treating them as string
I need to develop a table in angular js to show a third party data (and hence data cannot be changed).
Data to be shown is completely dynamic in that number or sequence of columns can change anytime.
...
0
votes
1answer
26 views
How to watch for $scope changes in a directive?
I have a directive like this:
app.directive('selectedForm', function(MainService) {
return {
scope: {
formName: '=currentForm'
},
restrict: 'E',
link: ...
0
votes
1answer
8 views
Can not add or remove body class when using $stateChangeSuccess event from UI-Router
This is the issue took me about one week to troubleshooting!!! I can not find the answer. So I will share with you guys.
Below is the code. The class test will apply to body without any issue if I ...
1
vote
0answers
24 views
How angular interceptors works?
I was learning angular interceptors today. I did some samples to to better understand the concept. Here is small sample.
var app = angular.module("myApp", []);
app.factory("timestampMaker", [
...
0
votes
1answer
19 views
how can i make a json with category in mysql?
i need to make a page which show all the items and when clicked bring me all the places where it is available.
i need to make this in mysql
app.controller('namesCtrl', function($scope) {
$scope....
0
votes
0answers
8 views
Recently I downloaded ng - table and after a long search , the variable $ data - I can not format it
Peace,
Recently I downloaded ng - table and after a long search , the variable $ data - I can not format it ( he always left blank ) .
I leave here code I wrote , I'd love to answer!
Good Day!
[https:...
0
votes
2answers
26 views
Edit AngularJS pages
I recently bought a Template webpage with AngularJS. But I can't edit any content of that
When I use "Inspect elements" in my browser, I can see all of tags such as "div", "table", "a" and etc., But ...
0
votes
2answers
35 views
Stop reloading the whole content on route change
I have a route like the following: page/:id, where it loads a different content for each id. However, every time I go to a different page, it reloads the entire content. I'd like to reload only the ...
-1
votes
0answers
7 views
How to Configure Telegram API(core)?
I have a big problem. I need work with this API, but i can't use in my external machine. In my localhost the connection is fine, but when i try install in a virtual machine this is not working. I ...
0
votes
1answer
21 views
How to appropriately `$inject ` with parameters?
When I do not insert any parameters to $inject method, then it perfectly works:
(function()
{
var FooController=function($scope){
alert('a1');
...
0
votes
2answers
19 views
Angular2: declare vars for all components
I'm using a company-wide internally hosted js-library. I referenced the script in the index.html file. To get it working I used the "declare" keyword in my root component to initialize some stuff when ...
0
votes
0answers
19 views
How can i open an md-card element as a lightbox and how can i give it a link?
I am using md-card directive of angular material, as you can see in this image each md-card has a picture, a title, a price and a decription.
What i want to do is to make the picture clickable and if ...
1
vote
1answer
14 views
add new object to json-server; AngularJS
I have an angular app that supposed to work with json-server for retrieving data and adding new data (users feedback). so I have json database with some arrays and one of them is "feedbacks":[] which ...
0
votes
1answer
19 views
How to send node js server side data to angular js
I am new to mean stack , in fact working on my very first project , i want to remember the request from the specific browser , which i have done using cookies . After that i want to send the history ...
0
votes
0answers
7 views
In angular tree view how they are updated parent and child relationship when drag and drop
I have a doubt in angular tree angular tree view . How they are going to update the parent and child relationship when they are drag and drop. Because I am facing the problem to give the parent child ...
0
votes
0answers
6 views
Satellizer OAuth Unlinking gives 404 error
I'm testing satellizer example with Laravel back end for Facebook, once user links the Facebook account to the app its impossible to unlink it with satellizer, whenever user clicks Facebook Unilink ...
0
votes
1answer
11 views
How to empty md-autocomplete text field after submit?
I used md-autocomplete inside html form, then I wanted to set its field to empty after submitting.
I tried, as shown in the snippet, to use $setPristine() but it didn't work. and also tried to assign ...
0
votes
0answers
10 views
Trigger an Event from - Chrome Extension
I'm trying to make Chrome Extension that save the form inputs and you can easily apply them again with one click but the only problem that i'm facing when try to update ng-model values binded by ...
0
votes
0answers
32 views
displaying 2 values in single ng-repeat iteration
I have a Json file as below
[
{
"id": "crp_001",
"name": "Coffee",
"image_src": "coffee.jpg"
},
{
"id": "crp_002",
"name": "Arecanut",
"image_src": "arecanut.jpg"
},
...
0
votes
0answers
12 views
Angular ui: bootstrap datepicket input validation
I'm using this datepicker. As of now, the user can write anything he likes in the input field which is not what I want.
My code:
session.js
session.getDateFormat = function() {
return ...
0
votes
1answer
19 views
Change http request header without refresh in angularjs
I'm writing a website which uses ngRoute for changing pages.
for logging in a form will appear and when it's successful controller changes the http header for requests in the next steps.
bud the ...
0
votes
0answers
30 views
Value is added to scope but inaccessible from modal
I want to add a value to the controller's $scope once a button is pressed.
This will be accessed by the modal.
After the button is pressed, the value (item) is added to the $scope as expected.
...
0
votes
0answers
16 views
Optimal way to use Angular Directives and JSON
I want an efficient way to factor an Angular Directive that is written to display a chart.
After reading other answers here, I found a nice way to create a directive that displays a single chart ...
-1
votes
1answer
14 views
How to get the data of multiple cities using openweathermap api in angularjs?
I am new in angularjs, i want to get that data of multiple cities in angularjs.
Here is code.:
var app = angular.module('jsbin', []);
app.controller('DemoCtrl', function($http) {
...
-3
votes
0answers
13 views
Save data visible on webpage and then download it as a pdf
How can i save data, visible on webpage, to the pdf file and then provide 'Get PDF' button to download the pdf.
When 'Get PDF' button got clicked ng-submit="getpdf()" function works which goes inside ...
0
votes
1answer
24 views
Unable to get angular-fullpage.js to work
This is my first AngularJS project, and I am trying to get the angular-fullpage.js directive to work.
I think I have set it up correctly, and I was confused by the fact that the current version of ...