Questions tagged [angularjs]

Use for questions about AngularJS (1.x), the open-source JavaScript framework. Do NOT use this tag for Angular 2 or later versions; instead, use the [angular] tag.

0
votes
0answers
7 views

Send file from Spring server to Angularjs client with web socket

I've always used rest web services to transfert file between client and server but now I have to make this through web socket. This is the scenary: user requires file download by page interface, so ...
0
votes
0answers
6 views

click on “plot view” for OpenMCT have a error

I was going through Tutorial telemetry adapter for get start with Nasa OpenMCT mission control framework. at the end of step 4 right step real time telemetry base of tutorial picture i should have ...
0
votes
0answers
7 views

How to export a XLSX file with fiex location?

I was tasked to develop an application that reads a xlsx file on a determined directory, and also it export a generated XLSX file into this same directory. Problem is, the directory's set but using js-...
0
votes
2answers
30 views

how to get post response after/when 500 internal server error angularjs

I am getting a 500 Internal Server Error when I call a post service. I do have an interceptor that will open a dialog, though the dialog comes empty. It seems I can't get the answer of this call ...
0
votes
1answer
29 views

AngularJS http posts multiple times

I'm going crazy with this after searching for two days, I really hope someone can help. I have an AngularJS project using gulp. From here I call a basic method to execute and http post to my c# API ...
0
votes
1answer
22 views

How to get child injectors(services) list from a component in angular 4?

I have a component called Parent component and there is child component1 and child component2. Both child components extends parent component. I injected service A and service B to child component1 I ...
0
votes
1answer
14 views

Hiding the <thead> based upon the status value in Angularjs

My Ejs Code : <div ng-repeat="doc_insp in inspection_status" class="inspec-divider"> <span class="inspec-title">{{doc_insp.insName}}</span> <table class="table table-...
1
vote
1answer
25 views

AngularJS ng-upload reset file selection

I am using a simple file upload as below: <button type="file" ngf-select ng-model="fileData" ng-change="fileChanged(fileData)" name="file" required > Select File </button> ...
0
votes
0answers
10 views

Meteor sendVerificationEmail

I'm currently working on revising the registration procedure of our recruitment ATS, made with AngularJS and Meteor, and I need to verify the new user's email during the registration procedure. The ...
1
vote
2answers
20 views

it is good to use angularjs-datatable (Angular 1) instead of only jquery datatable in 2018?

Here is the angularjs-datatables (Angular 1) link angular-datatables v0.6.x And Here is jquery-datatables link jquery-datatables I think there are no any letest update in angularjs-datatables and ...
0
votes
0answers
17 views

Textarea with validation on Angularjs wont Work in internet Explorer 11 AngularJS

My code in angularjs, where i have a textarea with required atribute is allways dirty no matter what i input. Its important to remark that this works for every other browser beside this dude. Here is ...
1
vote
1answer
21 views

Change Date format from 2018-09-27T18:30:00.000Z to 2018-09-27 13:17:14 [duplicate]

When I select a date using angular md-datepicker I receive date in 2018-09-27T18:30:00.000Z this format but in my database i have dates in 2018-09-27 13:17:14 this format, how can I convert dates in ...
0
votes
1answer
23 views

AngularJS ui.bootstrap modal dialog is not showing

I have already seen this question: AngularJS bootstrap.ui modal not showing . But any of those answers didn't help me. I'm trying to display modal dialog using ui.bootstrap module. This is my index....
0
votes
2answers
22 views

can't access $state or $state.current

I want set page titles which change according to route. I mean Responsive titles. I have a directive in my module: mainModule.directive("pageTitle", function($state){ return { restrict: 'A', ...
0
votes
1answer
28 views

accessing values from a controller to directive which is having local scope

i have a directive(with local scope) and a controller. If i want to access the students data from the controller to the directive, how do i need to do it ? below is the code. My purpose is to build a ...
0
votes
1answer
30 views

spring security and spring boot 2 with cors Access-Control-Allow-Origin issue

I am getting below error . can somebody help me how to configure cors in spring boot with spring security. is there any thing I have to do fro UI side in angularjs. Failed to load http://...
-1
votes
1answer
14 views

'topFunction' is declared but its value is never read

in Angular project, i have given a function name called "topFunction" in my html page and written the function within the ngOnit() in component.ts ngOnInit() { function topFunction() { ... } ...
0
votes
0answers
17 views

Always show Calendar in AngularJS

I am working on a model in which I require a calendar with two months with the functionality of range selector. So for that, I am using daterangeselector.js file in AngularJS but the problem is I have ...
0
votes
2answers
24 views

Is there any alternative for “limitTo” in Angular2 or plus

As in Angularjs (Angular-1) there is a limitTo filter to limit your text that you have to display Ex: If I have a string like $scope.val = "hey there how are you"; and I have to display only ...
0
votes
0answers
16 views

Angular material broken on Chrome 69 update

So, after chrome update, my page needs to be resized to be well seen. Any ideas? This is with default zoom (100%): Then, this is how it should look (resized to 90%): Thankyou in advance.
0
votes
0answers
10 views

placeholder of material time input displays incorrectly in Ubuntu Firefox

https://angularjs-8hzcph.stackblitz.io The placeholder of Firefox is displayed as "--:-- --". But it displays correctly in Chrome. How to fix it?
0
votes
1answer
18 views

Why ng-value and value attribute of input element hold different values

The input field value doesn't get the assigned ng-value.The dragItms object holds the value to be bound for the given col key. When isSaveTemplt = true, collection and columns gets updated after api ...
0
votes
0answers
14 views

Angular Ui-Grid Excel Export Fomatting

We are using the latest version of angular ui-grid and using exporter service to download excel files as: var rowTypes = uiGridExporterConstants.All var colTypes = uiGridExporterConstants.All ...
0
votes
1answer
24 views

how to css md-tab label in angularjs

Markup : md-tab label="Current ({{ctrl.ongoing_assignments.length}})" Required Output : Current (1) <===== i want the number will be in red background with round shape like notification in ...
-1
votes
0answers
20 views

How can I identify an element type from a “div” in React JS or Angular JS?

I am trying to store the XPaths of all the elements in my web page in a database. I can store the XPath and name/class of the element, but how do I get the type of element? I would like to know ...
0
votes
0answers
10 views

Slickgrid with angular for multiple grids within a controller

I have a code that defines two slickgrids through JavaScript. However, I don't understand how to access the grids. $scope.grid = $scope.$grid randomly selects one of the grids. I want to specify ...
-1
votes
0answers
7 views

Add to cart in Mozu by using API

An error occurred while trying to create new or get a current cart in mozu by using API. from where I will get a permit to attempt this operation Error: The system does not permit the attempted ...
0
votes
0answers
19 views

Does angular bootsrap calendar have a render complete event?

I've been working with angular bootstrap calendar (https://mattlewis92.github.io/angular-bootstrap-calendar) lately and i needed an event where i can call a function when the calendar finished ...
0
votes
0answers
23 views

input field immediately executes any written js code

We have a text input which is binded to a variable in angular controller. <input type="text" class="form-control" ng-model="activityTypeStatement.InformationText" /> There are no other ...
0
votes
0answers
15 views

how to copy one folder to another in grunt?

i want to copy all the folders and files from dist folder to deid folder an below is my folder structure copyDist: { main: { expand: true, cwd: 'integration', // 'Current ...
0
votes
0answers
30 views

passing multiple data attribute in highchart

I am new to angular, I want to create a pie-chart using high chart. In the chart, I want to show two parameters 'students present' and 'students absent' and whenever the user clicks on the students ...
0
votes
0answers
29 views

how to check angularjs value in php mysql query

Here the details i have use the code format, i have taken angularjs value as php variable but in php mysql_query it doesn't given result. i want to take angularjs value to php variable and get the ...
1
vote
1answer
23 views

Angular 1.4.8 - how to use ternary operator in laravel blade?

I have JSON data in following format - {"Front head room":"38.0 in.","height adjustable driver seat":true,"multi-level heating passenger seat":true,"sport front seats":true,"Front shoulder room":"55.6 ...
1
vote
2answers
38 views

Can't Get Post $http service angularjs

Somebody can help me. My service:( Service name:reviewService) this.addFeedback = function (param) { return httpService.post('my api', param); } My controller: $scope.param= { ParentId: ...
1
vote
1answer
25 views

Get Tags Value click method angular

so I have implemented tags input in my angular app project. It works well with autocomplete except that when I click on a certain tag, it just only gets the value of the first index. sample image ...
0
votes
1answer
42 views

running a function for each of ng-repeat values holding different values in the resulting scope

$scope.check_following= function(a) { $scope.check_following_username= {username:a} $http({ method:"POST", url:"check_following.php", data: $scope....
1
vote
1answer
22 views

How to intercept convenience shortcuts of $http in AngularJS

I have the following function (credit) that wraps an AngularJS $http function in a way that it invokes browser XHR when running on desktop, but invokes cordova-plugin-advanced-http if on mobile. It ...
0
votes
1answer
36 views

Wait for http response in AngularJS

I am using angularJS, and i am trying to get a result from the back-end using a service like this: app.factory('myService', ['$http', '$window', '$rootScope', function ($http, $window, $rootScope) { ...
0
votes
0answers
38 views

Using GET method for Id

My app is working GET method for all Employees. But I would like to get only Employee like ID. Web app doesn't call GET method by ID. I don't know why??? I have writtenJS code from angularjs: $scope....
0
votes
0answers
24 views

bootstrap menu shows inside table inside of a scrolling content div

I have a div that has scrolling content set as follows : .div-scroll { height: 20vh; overflow-y:auto; } Inside the div there is a table and the table has on its last a bootstrap dropdown ...
0
votes
0answers
23 views

mongodb stitch returns all fields

I'm trying to get just one field back for all my documents. I'm new to mongoDB but I can't understand why this isn't working. var docs = db.collection("articles").find({}, { _id: 0, title:1})....
0
votes
1answer
36 views

Replace double quotes with single using angular-translate?

I am using angular-translate for translating English to French but the issue is it converts single quote to double quote. I want to replace translated double quotes with single quote. I have a filter ...
0
votes
3answers
20 views

img src with a function as name of file

I have images in a folder saved as the users name. I want to display a clickable image from the (name of user).png. Using AngularJS This is wrong but this is what I mean, I know I cannot use src with ...
0
votes
1answer
13 views

angularjs inheritance objectprototype may only be an object or null

I thought this would be a simple base and child class task but this error is throwing me. I created a base class like this: module A.B.C { export class instructionBase { constructor( ...
-1
votes
1answer
37 views

Doesn't show <tbody> in html

I would like to design table with angularjs on index.html. Then showing index.html and is okay, but <tbody ng-init="getAll()" - not show... I put index.html: <table class="table table-hover"&...
0
votes
0answers
8 views

HTTP Requests with cookies on chrome extension

I have been several days trying to understand how a chrome extension is working when a HTTP request is made. I am using YARC (Yet Another Rest Client) Chrome extension. But I guess it works same for ...
0
votes
1answer
22 views

send cookie inside request angularjs http get

I have the following http get , that I would like to send a cookie with a language on the request, but turns out with $cookieStore, it sends the cookie outside of the request $cookieStore.put("...
0
votes
0answers
34 views

Trying to implement route guard

I'm trying to, very simply, implement a route guard on one of my routes so as to ensure that only authenticated users get access. As things stand, users login and are assigned a token, via twt, and ...
0
votes
0answers
8 views

Pass Query Parameter to Post Request with AngularJS and Redux

I have a rather large application. It is built on Angular 1.5.x. We have implemented redux/rxjs on the screen that I am gonna be talking about. In that screen, we want to have a checkbox, that when ...
0
votes
0answers
16 views

Cant load donut chart after changing the language angularjs

I have been trying to come up with a solution or work around for my problem as I have to do a phased delivery tomorrow, I have the following problem: First time I acess the donut chart works fine ...