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
0answers
6 views
Call function after two promises resolve in angularJS, one using result from other
In a controller function, I make some operations:
Get a list of organizations with a promise
In the then of this promise, I loop through each of them to extract some data and populate some of my ...
0
votes
0answers
5 views
How to open item.url in browser using ionic framework
In ionic framework i want to open below link in system browser how can i do that.
<a class="button" href="{{item.url}}" >Click Me</a>
0
votes
0answers
10 views
How can I assign a conditionnal variable to the same ng-model
I have a dropdown menu with multiple option values. On one particular condition (value='Autre'/ other) I have another input that shows up so the user can write a new value (supposed a value that isn't ...
0
votes
0answers
5 views
ng:areq Argument 'AppDetailsCtrl' is not a function, got undefined AngularJS CoffeeScript
I am trying to link my coffee script file to the appropriate controller but I get the following error:
Error: [ng:areq] Argument 'AppDetailsCtrl' is not a function, got undefined
http://errors....
2
votes
3answers
18 views
Angular error 'ContactController' is not a function, got undefined
<div ng-app="app" ng-controller="ContactController" >
</div>
Above is my html file and This is controller file.
var app = angular.module('app', []);
app.controller('...
0
votes
0answers
4 views
Export dynamic paginated html table to excel in AngularJS/Typescript application
I have an AngularJS application with Typescript. HTML table is dynamically filled with a template, data is fetched from WebAPI post request and paginated response is received. I need to export the ...
0
votes
0answers
6 views
Static code analyzer for Angularjs
I have a project build with AngularJS with frontend and Spring framework on backend. I am applying CI for the builds and I need to check the code standards once developer checkin the code using ...
0
votes
1answer
18 views
Create dynamic object for angular chart
I want to create dynamic an Object like this for using it with Angular Chart.
[{
id:0,
name: 'WI',
type: 'NI',
labels: ["January", "February", "March", "April", "May", "June", "July"],
data: [[28, 48,...
0
votes
0answers
12 views
AngularJs: not ordering numbers correctly
I have a problem when ordering my list in ng-repeat, is sorting, however, the numbers from 1 to 9 are in dozens positions for example:
89
9
90
91...
I'm ordering like this:
Ng-repeat = "object in ...
0
votes
0answers
4 views
Jhipster generator skip auth code at --skip-server
Why when we generate project with '--skip-server'
yo jhipster --skip-server
part of authentication is lost. (on AJS/A2).It's right?
Everytime i need to paste part code (AuthServerProvider on ...
0
votes
0answers
6 views
Accessing files from OpenID/OAuth2 protected web api in angular 2
We have an OpenID/OAuth2 (Azure AD) protected ASP.NET Core Web API to return documens from an Azure Blob Storage.
Our frontend is based on Angular (Version 2) and lists in an hierarchical view all ...
0
votes
3answers
24 views
How to get event.target as an object in Angular 2?
First, I'm sorry to my deficient english.
.
I want write code if click anywhere except .do-not-click-here, call myFunction().
So I wrote code like below.
document.addEventListener('click', (event) ...
0
votes
1answer
20 views
how can import template.html in typescript
i want to include template in my typescript how can do that??
var template = import './template.html'
i use web pack and bundle all file into one javascript file.
i use angularjs (v1) and want to ...
1
vote
0answers
5 views
Grafana DataSource response data format
I'm writing a fairly simple data source for Grafana and I'm having issues with the response to the query function usually located in datasource.js. I get this error message every time a query is made:
...
0
votes
0answers
9 views
How to redirect user if not authentication on firebase
I am trying to redrect user to login page if not auth my issue I cant see my code running if the user isnt auth,
userRoute.$inject = ['Router','$rootScope', '$state'];
function userRoute(Router,$...
0
votes
1answer
21 views
Angular 2 component cannot retrieve data from service
The situation is quite simple - I'm trying to get data from Angular 2 service but target array is always empty. I can see that call to api return data and status 200 and there is no errors in console.
...
-2
votes
0answers
17 views
Node.js and auto-deployment
I develop application on Angular 2 and Node.js. How create auto-deployment app on web-server? Do you change section "scripts" in package.json (add the command postbuild) or change webpack.config.js? ...
0
votes
0answers
11 views
Internet Explorer with Angular Cookies
Bonjour les stackies
I need some help to find why my code is running on Chrome and isnt on IE 11
Here is my problem :
Using AngularJS and ngCookies i can set and get my cookies when i use Chrome.
...
-1
votes
0answers
21 views
No 'Access-Control-Allow-Origin' header is present. local server AngularCLI [duplicate]
I have an angular2 app which I serve with AngularCLI.
When making a http request in Firefox/Chrome browser, it throws this error.
I know that there are a lot of questions about this issue but all the ...
2
votes
1answer
26 views
angularjs and json server error: [$injector:unpr] Unknown provider: $resourceProvider <- $resource <- menuFactory
Hi guys I developed small angularjs application and use json server to run my backend code. There is a problem with provider in my code. When I run that I got errors in below:
Uncaught TypeError: ...
0
votes
2answers
19 views
HTTP POST request from Angular 2 client to Node.js server
I have a strange issue with sending POST request to my Node.js server. I have also some GET listeners but they work perfectly fine. So, I am trying to send a simple request from Angular 2 application (...
0
votes
0answers
10 views
after page load expanded li's are not preserving their state in angularjs
Hi I am developing one portal using angularjs. I have li's inside ul. I am binding data to li's using loop. My problem is that for example i will click on some li inside ul page works fine with ...
0
votes
0answers
25 views
bootstrap two different controllers in angular js
'use strict';
angular.module('gantt')
.factory('GanttApi', ['$q', '$rootScope', 'ganttUtils',
function($q, $rootScope, utils) {
/**
* @ngdoc function
...
0
votes
3answers
33 views
set attribute in html
Based on condition status == "complete", I need to set an attribute disabled to a input tag.
Using javascript, we can add using setAttribute method
var b = document.querySelector("input");
b....
0
votes
2answers
21 views
Angular2: recursive routes in children
In Angular 2, there is a route like this:
{ path: 'contents/:id', component: ContentComponent }
this works perfect when I /contents/1 is accessed.
Let's say that the ContentComponent has many ...
0
votes
0answers
14 views
Shopping List - Local storage issue (Ionic 2)
As part of my recipe app I am creating a shopping list, so the user can click a button on one page, take the ingredients and it displays on another page. Simple eh? Not for me.
The main issue that I ...
0
votes
0answers
7 views
JHipster HTML 5 mode relative paths not rendered correct in google search console or prerender.io
I changed my JHipster application to html5 mode like the advice from https://jhipster.github.io/tips/010_tip_configuring_html_5_mode.html to let Google find the sub sites. The change was easy and the ...
0
votes
1answer
15 views
How to bind checkbox in angular with DB MeanStack
hi all i work with angularjs ng-repeat .i want to bind checkbox based on db value true or false.but checkbox will not check/uncheck whether db value is true?
<span editable-checkbox="contacts....
0
votes
2answers
20 views
move from login page to main page in ionic using angular
my code is working fine. but when i click on login button it changes the state as shown in the pic, it is changing its url but not opening that page.any help how can i redirect to next page?
index....
0
votes
1answer
23 views
How to make filter with two functions?
I have two custom functions in controller:
$scope.isCategory = function(){
return true;
}
$scope.isStatus = function(){
return true;
}
<tr ng-repeat="item in filtered = (projects | filter:...
1
vote
0answers
15 views
Console error while using NVD3 linechart graph
I am using nvd3(version 1.8.4), d3(version 3.5.17) and angularjs-nvd3-directives(0.0.7) to draw linechart graph in my project. But while loading the graph I am getting the console error like this.
"...
1
vote
1answer
18 views
Angular 1 bind data to a script template
I am still an upcoming developer and i got a problem here.
I want to bind an item from the main template to a script template which is a form activated via md-dialog. How can I bind data from the ...
0
votes
0answers
9 views
Angular Caching remvoal
My aim was to remove the http request from the cache storage.
I tried with the below code , but still it seems that the removal of my needed item from the cache was not working. Below is my code.
My ...
0
votes
0answers
41 views
html table with a fixed row and fixed column
I need to display a large table on a web page and need to prevent the first column and first row from scrolling. I'd like to dynamically set the vertical size of this table (between some static size ...
1
vote
1answer
13 views
Testing values from other services in Angular
I'm using Karma and Jasmine to write unit tests for an AngularJS application and I'm having some trouble verifying data in one of my tests. In this test I have a component controller which makes use ...
0
votes
0answers
11 views
RoR + AngularJS injector module failed to instantiate module
I am trying to add ng-rollbar to my RoR+AngularJS project. The stack is:ruby 2.3.1p112, Rails 4.2.6 and angularJS 1.4.12.
Following the instructions I runned the command:
bower install ng-rollbar --...
1
vote
3answers
20 views
ng-show display the contents before the page finished loading?
I'm using this very simple approach to toggle between hiding and showing some contents:
<a ng-click="cred=!cred" href="javascript:void(0)" style="text-decoration:none;"><strong>Admin ...
-4
votes
0answers
34 views
Firefox and Internet Explorer adding slashes in span tag [on hold]
I'm using summernote angular plugin and it works fine in all other browsers but in firefox and chrome its giving different outputs and adding slashes in html tags.
Example output in chrome and other ...
0
votes
3answers
45 views
How to call jQuery function with $http.get from an AngularJS function
I tried to call the following jQuery function with $http.get from an AngularJS function.
But call cannot be executed.
The following is the jQuery function
function msgBar(){
$...
-1
votes
0answers
15 views
How to generate a valid url to get query parameters in angularjs?
I'm trying to receive a code from the facebook to get access token.
My url looks like this:
https://graph.facebook.com/oauth/authorize?redirect_uri=http%3A%2F%2Flocalhost%3A8080%2F%23main&...
-3
votes
0answers
16 views
AngularJs: How to create nested comment box with reply functionality? [on hold]
I have tried many things to code for it. Also refer below link but didn't get any thing proper: -
http://caitp.github.io/ui-comments/#/
Please help me in doing this
1
vote
2answers
35 views
How to I change my CSS according to JSON data value?
Suppose one of my keys has value Green/Red and I want to show bootstrap btn-success when its value is green and btn-danger when its red.
0
votes
0answers
21 views
AngularJS - Add walking distance to ngMaps with circle
I've been trying to achieve something like is done in this website.
So far I've managed to create a map with circles by using ngMaps.
Below is the snippet of what I have done till now...
Can anyone ...
2
votes
4answers
20 views
How to show an alert when a variable is changed?
I need to display an alert when a value is changed:
if(myVal == true) {
alert('yes');
} else {
alert('no');
}
This should be executed everytime myVal changes. How to achieve this?
0
votes
0answers
10 views
Disable SCE completely in Ionic/Angular
I'm trying to completely disable the $sce service of Angular in Ionic, however I have no idea where to place the code.
Here's the snippet I need to insert:
angular.module('myAppWithSceDisabledmyApp',...
0
votes
1answer
18 views
AngularJS application shows file structure when I refresh
I currently have an AngularJS front end for my application. I have used ui-router for transitioning between states.
When I enable HTML5mode and refresh the page, the application ends up serving the ...
0
votes
0answers
12 views
How to show all xLabel in angular morris chart?
How to show all xLabel in angular morris chart?
<div line-chart line-data='dashboard.graphData'
line-xkey='y' line-ykeys='["a","b","c"]'
line-labels='["Success", "Failed", "Pending"]'
...
0
votes
0answers
47 views
How to sort ng-repeat by some arrays?
I have the following:
$scope.filterObj = {"status":["active"],"categories":["u"]}
And object that I need to sort:
{"categories" : ["u", "a"], "status" : "active"}
I tried to filter this as:
<...
0
votes
1answer
12 views
getting error after successful grunt build
Uncaught Error: [$injector:modulerr] http://errors.angularjs.org/1.4.8/$injector/modulerr?p0=newFarmerApp&p1=Err…ogleapis.com%2Fajax%2Flibs%2Fangularjs%2F1.4.8%2Fangular.min.js%3A19%3A463)
...
1
vote
0answers
14 views
Slick afterChange Event is not getting triggered on mobile
i want to fire my custom function on afterChange event of slick slider, i applied the following code, which is working in desktop, but not responding on mobile. In desktop, slick afterChange event ...