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
4 views
AngularJS - Conditional attribute not working with variable?
Below is my Angular Controller
Angular JS
var multistage = angular.module("multistage", []);
multistage.controller('groupStanding', function($scope1) {
$scope1.grouplimit = 3;
$scope1....
0
votes
0answers
8 views
gulp how to handle path for production
I have an AngularJS app with the following structure
/SuperApplication
----/dist
----/node_modules
----/public
--------/app
------------app.js
------------httpRequestInterceptor.js
------------routes....
0
votes
1answer
20 views
How to create sidebar with menus and few menus having drop down also
Hi I need to create a side navigation bar with menus along with few menus having drop down. Can anyone help me with that? based on the selection made the view will be shown on the main page using ...
0
votes
2answers
11 views
Updating mongodb with angularjs and node
I nneed to update my mongodb. using nodejs and angularjs on the front end. I have the above code but i get `TypeError: Cannot read property 'put' of undefined
My angularjs controller :
myApp....
0
votes
0answers
5 views
Angular ng-mouseover on md-icon md-svg-src with ng-repeat doesn't work
I have a mistake with this part of code:
$scope.btns = {
'telechargement': "assets/img/btns/Btn_telechargement.svg",
'telechargement_hover': "assets/img/btns/...
0
votes
3answers
20 views
Set dropdown to a particular value in AngularJS
I have the following HTML code and want the select dropdown once loaded to automatically select the entry coming from the DB - in this case from the rule.id variable. How do I do this in AngularJS?
...
-1
votes
1answer
12 views
autofocus not working
<input type="text" autofocus="autofocus" name="nameAr" style="direction: RTL;"
class="form-control input-sm field-size " id="nameAr" ng-model="regCtrl.user.nameAr" ng-maxlength="250">
Had been ...
0
votes
0answers
8 views
Unit testing attribute angular directive with Jasmine 2
I have an attribute directive that will be used with another parent directive:
function childDirective(/*injection*/) {
return {
restrict: 'A',
replace: true,
transclude: false,
...
0
votes
1answer
15 views
ng-init with json file
Can I use a json file in ng-init to get data of the json file ?
I have this example but I want to replace my object by the json file.
<html>
<head>
<title></title>...
0
votes
0answers
11 views
My $scope value not updating
updated object is not getting without using location.reload
Hi i will get list of objects from API where i have to update one value,After updating that value in modal popup i am not able to get new ...
0
votes
0answers
13 views
input docent read datepicker using jquery and angularjs model
i just came across with a conflict while i am updating date from date picker , the selected date docent read on the input field in order to pass towards controller, can you please guide me on why the ...
0
votes
0answers
14 views
C# - Send random object to Frontend together with HttpResponse
I'm generating a PDF document on backend, and also, I'm populating a List of KeyValuePair with error messages that I want to display on the Frontend.
The backend controller code is this:
/// <...
0
votes
0answers
6 views
Messagge handling - BE of FE
I have a web application made in angular that interacts with JBoss REST API for the business logic.
My question is:
Should the message localization handled by FE or BE?
I guess that message and ...
0
votes
0answers
16 views
Return $httpProvider when offline
I am using $httpProvider.interceptors for refresh tokens and I thought it was working good... until the app (ionic project) was offline, which I had taken into account and had been fully tested before ...
0
votes
1answer
10 views
Kendo UI Grid trying to select row with the following configuration
In my AngularJS application im using Kendo UI Grid.
I have the following Kendo UI Grid options and dataSource. What im trying to do is to somehow add click event on each row. I have definitions for ...
0
votes
0answers
15 views
Best way to implement auto suggestions feature?
Currently, we are manually making a request call for suggestion data with every keyup, but cancelling the previous call made before making the new one. Is there a better way to do this with Angular.js/...
0
votes
0answers
8 views
TypeError: c.paramSerializer is not a function
I have used $httpParamSerializer to serialize params for getting token from server if login's success.
But sometimes browser's console throw error message "TypeError: c.paramSerializer is not a ...
0
votes
0answers
27 views
How to prevent the last one checked checkbox from unchecking in angular 2
I have a problem with angular 2, I don't know how to check back the last checkbox after unchecking.
Here is my piece of HTML:
<td *ngFor="let box of checkedBoxes"><input
type="checkbox"
...
0
votes
1answer
17 views
Re-setting select field to default on form submit using AngularJS
I have a form created using AngularJS. The form is a questionnaire type form that can be submitted multiple times in a row. The form is a mix of text areas and drop-down select fields.
The form has ...
0
votes
0answers
13 views
Firefox does not apply angular expression, Chrome Does
I've an html page with an angular js file that interact with routes and DB.
my html :
<tr>
<th><i class="fa fa-calendar fa-2x" aria-hidden="true"></i&...
0
votes
1answer
20 views
TypeError: Cannot set propertly src of null after minifying the javascript
I have following line is one of my angular controller:
document.getElementById('someId').src = localStorageService.get('someKey');
It is giving me, TypeError: Cannot set propertly src of null after ...
0
votes
1answer
15 views
How can I access DOM using service in Angular 2?
I am thinking to create a feature to hide and show components across the Angular 2 Apps. I have thought about using *ngIf or ngClass to do so, however, this will be tedious for writing the code. I am ...
0
votes
0answers
3 views
Messenger in not creating preview from metadata of Angular Application
I have dynamic metadata in Angular Application (SPA) and if i share a link of a particular state then applications like Messenger, Whatsapp, Skype etc. is not picking up metadata and rendering the ...
0
votes
2answers
13 views
AngularJS pass Parameter to Web Api Get
i'm trying to pass object parameter from angularJs controller to Web Api 2 Get Method controller.
If i pass object like string it will work but i don't like this solution.
[HttpGet]
public ...
0
votes
0answers
15 views
Angular ui-router state names for nested REST resources
I'm currently design a new API and a webapp that uses the API.
For example, suppose I have the following REST resources: (using a spring-boot microservice):
GET /orders // get all ...
0
votes
0answers
9 views
Angular UI - angular-google-maps. Is It possible to configure uiGmapGoogleMapApiProvider.configure(options) dinamically?
Is It possible to insert options dinamically from promise (ex. $http.get(...)) in to
.config(function(uiGmapGoogleMapApiProvider) {
uiGmapGoogleMapApiProvider.configure(<object from $http&...
0
votes
2answers
12 views
Angular 1.2: Trigger page change from directive
I've recently come back to an angular project after some time away and I'm (once again) having some trouble making sense of the angular syntax.
I'd just like to add a link to a button.
Here's ...
0
votes
1answer
25 views
How do I get data in input field from a get request in angular JS?
I would like to get JSON data in this format which needs to be displayed on the screen:
{
"make": "Toyota",
"vin": "1234",
"model": "FJ",
"parts": [
{
"name": "wheel",
"desc": ...
0
votes
1answer
20 views
How do i activate hover state of multiple elements on button click?
I wanted to know how to do this because i am making a shake button and if it is clicked al the divs will show their hove state and thats a gif being activated but i can't find anything online.
I ...
0
votes
0answers
5 views
AngularJS cascading select menu from same data set
I have a single json data set that looks a little something like this;
categories: [
{
name: "Category name",
products: [
"Product name 1",
"Product name ...
0
votes
0answers
9 views
Integrating SignalR with AngularJs
I have this part of code
$(function () {
//
// Initialize section
//
//
var hub = $.connection.hub,
platformHub = $.connection.PlatformHub,
...
2
votes
0answers
20 views
Complete url validation angular
I want to validate an url with angular.
I found this : URL validation. ng-pattern not working
So I used :
^((https?|ftp)://)?([A-Za-z]+\\.)?[A-Za-z0-9-]+(\\.[a-zA-Z]{1,4}){1,2}(/.*\\?.*)?$
It's ...
0
votes
1answer
9 views
Using constant inside HTML file
I have following constants.js code:
var app = angular.module('myApp');
app.constant('globalConstant', {
TYPE: {
0: 'Good',
1: 'Bad'
}
});
My list.js:
app.controller('myCtrl'...
0
votes
0answers
11 views
how to get server date using javascript?
i am using angularjs client side application and working with date and time. My problem is that local system date anyone can change, to protect this i want to use server date without ant get or post ...
0
votes
0answers
12 views
Post multiple content one by one using angular js in api
Hello guys I am trying to upload multiple file using web api but the problem is that i want the name of all particular image and post it in another api but the actual problem i am getting is that it ...
0
votes
0answers
7 views
Citrus Pay Integration with Angular Js and Php
I am trying to integrate Citrus Pay in My Angular JS Application , But the Citrus Pay JS library is not working when I use it in my Angular JS controllers.
Can I get an Angular JS solution for Citrus ...
0
votes
0answers
5 views
track the value of a variable in ionic app with google analytics
I am new to Google Analytics, I am trying to implement it in my Ionic app and I am using the plugin cordova-plugin-google-analytics.
I have a final product page, where I want to track which brand is ...
0
votes
0answers
15 views
Clearing the images , when new function called in angular js
I have list of images and I had set my imageStorysource as the first file from response.
JS:
scope.previewImage( element[0].files[0] );
$scope.previewImage = function ( file ) {
...
-2
votes
1answer
20 views
window.onbeforeunload, window.unload, window.beforeunload functions are not working in IE and Mozilla
window.onbeforeunload = function (event) {
// I need to call an API here but the window is closing
// before making that HTTP call
parent.API.LMSFinish("").then(function () { })...
2
votes
1answer
17 views
AngularJS $promise used with NgResource
I came across promises as I am going through my journey on learning AngularJS and it has been good so far. Now, I wanted to learn more about using AngularJS optional library resource.js. However, I ...
0
votes
0answers
16 views
Stylesheet is not loading in Internet Explorer
Im trying to fetch the external CSS file in my angular application.
Path to the CSS file is decided by controller. But the CSS file is not loading in Internet explorer.
<link rel="stylesheet" ...
0
votes
1answer
29 views
Using lodash .groupBy. How to group object inside an object
I'm using lodash's _.groupBy to come up with the following data:
{
"Generic Drugs":[
{
itemDes: "Dulcolax",
itemGeneric: "...
0
votes
0answers
6 views
Issue in google oauth 2?
I am using google oauth 2 for seamless sign in and I am using custom button for that but the problem is when click on the button, it takes twice click to open the google iframe and after second click ...
0
votes
0answers
14 views
I can't getting response from PayUmoney gateway to my surl
I am doing one MEAN stack project. In that template is running on one port that is http://localhost:3000 and node server is running on another port that is 7200. I have successfully made integration ...
1
vote
1answer
24 views
Disable list item - angularjs
I'm creating a breadcrumb navigation in AngularJS.
Some links should be disabled because the user didn't meet the requirements.
I've looked into the angular documentation and I figured out that you ...
0
votes
1answer
16 views
Directive callback executed after ng-if removes directive from scope
I have an angular directive on my page, within ng-if.
I have a service which exposes a function that receives a callback as a parameter. Let's call this function functionX.
When the ng-if expression ...
0
votes
1answer
19 views
when i set the token in header in angularjs generating error in nodejs server?
Error is:
Possibly unhandled Error: Can't set headers after they are sent.
at ServerResponse.OutgoingMessage.setHeader (_http_outgoing.js:344:11)
at ServerResponse.res.set.res.header
1.all ...
-1
votes
0answers
11 views
request.getParameterNames() returns zero parameters although request.getReader() nicely shows the expected parameters [duplicate]
An HTML form includes several input fields. The submit button calls a Java servlet. Since the form code belongs to angularjs covered HTML code, the servlet fails retrieving the form parameters. The ...
0
votes
1answer
18 views
How to get image source attribute inside a directive?
I have a simple image directive like this:
(function () {
'use strict';
angular
.module('myapp')
.directive('imageTest', imageTest);
function imageTest() {
var ...
1
vote
1answer
12 views
jQuery Flexslider not working with AngularJS
I have been trying to run the JQuery flexslider plugin with AngularJS, but its not working
This is the code I have tried so but no luck :(
This is the html structure
<div class="carousel ...