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.

Filter by
Sorted by
Tagged with
0
votes
0answers
14 views

Sort user input alphabetically with AngularJS

I have built a simple Bootstrap-based form. The collected user input are displayed at the bottom of the page (thanks to AngularJS): <script type="text/javascript" language="javascript" src="...
-1
votes
0answers
14 views

How to have service worker continue downloading scripts even after browser navigated away from the page?

I would like to download several large scripts (including a minified angularJS) when I hit a subdomain of my website (e.g. '/abc'). There is JavaScript on this subdomain that determines the User Agent ...
0
votes
3answers
22 views

how to use ng-disabled with data binding

I am trying to disabled the button when the binding data (level) is 1. ng-disabled="$ctrl.disabled($ctrl.selected.item.level)" I tried this but doesn't work index.html: <button type="button" ...
1
vote
0answers
18 views

Injection error in main application module [on hold]

I have a problem and would like your help! I am creating an angularJs application. In one of my files I use a constant to define the fixed values that I will use in my services like this: (function() ...
0
votes
0answers
18 views

Passing an AngularJS Array to a Downgraded Angular 7 Component

I am working on converting an AngularJS application to Angular. I am currently running a hybrid solution with most of the components still being AngularJS components, and am slowly rewriting ...
0
votes
0answers
26 views

How to add action buttons column in jquery datatable

I have a datatable like below, in which i want to add the last column as the 'Action' column which will contain 'view' and 'edit' button. When clicked on 'View' it will open a popup to show the ...
1
vote
0answers
23 views

Downloading heavy images(<2GB) from server using NodeJS

I am using the AngularJS and NodeJS for my project. I am storing my images to the AWS-EFS storage which is attached with an AWS-EC2 instance. Everything is working fine till I was downloading small ...
1
vote
0answers
19 views

How to call ng-init inside ng-repeat after reordering the list?

Please consider the JSFiddle below which is an example of my code. To reproduce my bug: comment the line delete $scope.queue.destinations edit one of the custom inputs of ringing_timeout try ...
3
votes
0answers
45 views

Is there a way in angularjs to show the contents of data

I have some react and vue knowledge but am a complete noob when it comes to angularjs and honestly I'm sorry to say the little I've seen of it has not made me enthusiastic. In a project with quite a ...
0
votes
0answers
33 views

How to set a value in angular's dropdown menu?

I would like to set/change a value in a dropdown menu that has been written in AngularJS in the Debugger located in the Developer Tools. I have tried the following: angular.element( ...
0
votes
2answers
26 views

How to invoke function of another controller from different controller

I am using angular js as my client side. I want to invoke one function which is in another controller. How can i achieve this?
0
votes
1answer
15 views

Is there a way to send parameters from angular login page to Kibana iframe dashboard?

i'm new to the ELK stack , so i have an angular web application that displays iframe kibana dashboard , so my problem is that kibana asks for user and password in the application and i have already a ...
0
votes
0answers
10 views

How to supress angularjs vulnerability in maven project [on hold]

I have a problem where "mvn dependency-check:aggregate" (OWASP plugin) is failing for "angular.js" and "angular-sanitize.js". Please suggest how I can resolve it.
0
votes
0answers
12 views

Aspboilerplate database only partially work on IIS

My Aspboilerplate website working fine on visual studio debug but not on local IIS.I have set the connection string in Web.config , after publishing to the IIS the site only loads partially,the login ...
0
votes
1answer
37 views

Switch between 2 global SCSS using selector

I'm upgrading my company AngularJS project to Angular 8 thanks to ngUpgrade. So I have a hybrid application with both angularjs and angular components. I am also using an angular material template ...
0
votes
1answer
25 views

How to bind ng-model value to ng-checked

I have got checkbox value from database as(0 0r 1) but it's not checked in my form <input type="checkbox" id="male" name="male" value="1" data-ng-checked="{{male}}" data-ng-model="male" />
0
votes
0answers
19 views

How to generate PDF from an Array in Table Form using PDFMake

I have this event, performing a calculation of "display total", "interest rate" etc. and the results are stored in an array "jsonObject" rows = []; displaySegment ($event){ const month = ["Jan", "...
0
votes
1answer
24 views

How to use lookup in mongoose if local field have array form value in single dimension?

One field have value in single dimension. I want to use lookup that field to another document but getting only one record. Here my user schema and org schema with aggregate query. with data in user ...
0
votes
0answers
10 views

Angularjs select2 scrollTop fix

I'm trying to set the scroll bar position to top always when open the drop down even though highlighted item in the last position. Did some analysis, it looks like library feature. I would like to ...
1
vote
0answers
41 views

Getting 'internal Server Error' in ajax success when already i got the data from database [on hold]

I was Request to return data from database using webApi call and i got the data in return of Jsonresult and When the Api Response is taking too much of time to return data from database, i got the ...
0
votes
1answer
17 views

How to use binary file as input of File Uploader

this is my first post here,not sure how things work around here,but hey you gotta start somewhere. I'm using a package from angular called angular-file-upload to upload images. Is it possible to use ...
0
votes
1answer
23 views

Get discount percentage in angular

I have line of code where I try to get discounted price in percentage but it returns opposite. {{((product.newprice/product.price)*100).toFixed(0)}}% This supposed to return 3% for instance but it ...
0
votes
0answers
26 views

How to make multi-select list/table in javascript which is searchable by multiple features?

Summary: How can I make a list/ menu in HTML using JS where I can: select multiple items search for each item by more than one parameter? Example: want to search a list of books, but also want to be ...
0
votes
1answer
14 views

Expression not printing to page with AngularJS

I'm a AngularJS newbie. I have to learn it to help maintain an existing site. I made a simple angularjs app to just print hello but it is not working. What is wrong with my code. Thank you. Codepen: ...
0
votes
1answer
19 views

Create list cards dynamically angularjs dashboard

I have inside of <div class="row"> </div> four card element like this photo cards I edited the code of first element. (source code) <div class="col-sm-6 col-lg-3"> <...
0
votes
0answers
27 views

ng-click firing twice for radio buttons

I have the following: <div class="csv-radio-group"> <input type="radio" id="csv" name="export-type" ng-value="csv" ng-click="$ctrl.setExportType($event, 'csv')"> <label for="...
1
vote
3answers
43 views

How to use .join() with push and replace together?

What I need to do is to add a delimeter between an array elements. I have: for(var i=0; i<data.length; i++) { response.push( $sce.trustAsHtml( myResource.replace('[[...
0
votes
0answers
8 views

Karma can't load html template from temp\_karma_webpack_ folder

I'm having some angularJS directive tests that load html templates like beforeEach(module('/tmp/_karma_webpack_/app/components/directive/directive.html')); When trying to run tests with karma I get ...
0
votes
0answers
18 views

How complie component in angularjs and get access to form of view?

I write unit test and want to test form`s inputs. const formElem = angular.element(`<fio-information></fio-information>`); $compile(formElem)($rootScope); $...
0
votes
1answer
23 views

How $watch changes of a variable in a service from component's controller?

I have been through all related topics on SO, namely these two: $watch not detecting changes in service variable $watch not detecting changes in service variable are tackling the same issue, but i ...
0
votes
0answers
18 views

model is not refresh inside directive after changes

I'a got a template with a directive using objects. That directive modifys an elements in the objects list. I can see the object modification in the template but not inside the directive. I used ...
1
vote
1answer
21 views

Browserify / Electron / AngularJS Error: fs.existsSync is not a function

I'm getting a Error: fs.existsSync is not a function code after I bundle my code using Browserify. Before I've tried to use require() but I kept getting Error: require is not defined due to require ...
0
votes
0answers
21 views

Please help me get rid of [$injector:modulerr] problem

I tried to use RequireJs in my angularJs project, I tried all the way to figure out how to get rid of Uncaught Error: [$injector:modulerr] I clicked on the link and it showed me the error: ...
-1
votes
0answers
21 views

Convert UTF-8 to text

I'm using an API that returns a list of emails and respective content/headers. The subject however in some emails come in this format: "=?UTF-8?B?8J+OgiBBbsOtYmFsIFRpbm9jbw==?= =?UTF-8?B?...
0
votes
1answer
20 views

Angularjs pass null value in file multipart FormData to Spring MVC

I am attempting to send form data with Multipart data (Image) to Spring MVC controller. From my form. image field is non mandatory. so when i call spring controller without input image field, i get ...
0
votes
0answers
23 views

allowed-tags-pattern is not working when pass data through ng-model

Currently i am trying to display validation message when user enters wrong data like string abc (allowed-tags-pattern="^[0-9]{10}$').This is working when user enter data by typing but when i directly ...
0
votes
0answers
11 views

Can we use ngAnimate as a Directive in ionic 4?

I want to make a common animation code for the project, currently i have added animations: [ trigger('myAnimation', [ state('add', style({ transform: 'scale(1)', })), state('edit', style({ ...
0
votes
0answers
11 views

Removing rectangular div around the 3D Pie chart drawn using Highchart.js

I am drawing a 3D pie chart using highchart.js. Please find the below code Highcharts.chart('container', { chart: { type: 'pie', options3d: { enabled: true, ...
-1
votes
0answers
12 views

How to collect Zabbix API`s by angular.js [on hold]

My current environment is trying setup a office dashboard or (tv Dashboard) where they want to monitoring all these issues by server so those issues will be pop on the front end which we created by ...
0
votes
2answers
52 views

IE 11 not handling .sort() method by date in Angular 4

Really unsure what's going on so if anyone could point me in the right direction with this, it would be much appreciated! Basically I have an array of data that all have a CreatedDate, I've sorted ...
1
vote
1answer
26 views

Transclude removes tr and td tags?

I have the following angularjs application, but for some reason the tr and td tags are removed? angular.module('transcludeExample', []) .directive('pane', function() { return { ...
-1
votes
0answers
16 views

Function is returning variables initial value before the api call is executed [duplicate]

I want to disable a button based on a functions return value. The function calls an api and assign a the result to a local boolean variable. Than the variable is returned from the function. The ...
0
votes
0answers
28 views

Building a hybrid angular/angularjs app - how to load angular modules in angularjs app

I'd like to start using Angular components in an existing angularjs project built using gulp and would like to use downgradeModule to create a hybrid Angular/AngularJS app. I'm having a problem with ...
0
votes
0answers
17 views

Prevent cursor jumping in Angular JS with background update

I am trying to implement a text box that will allow multiple people to edit at the same time. I have all the diffing and merging worked out and it it running but there is one problem. Everytime one ...
0
votes
1answer
24 views

AngularJS / Sqlite / Electron - Unknown provider: $dbServiceProvider

I am trying to build electron app which display/retrieve items on the table from SQL database that I created but I get Unknown provider error. I've tried to follow some solutions on the web but the ...
0
votes
0answers
24 views

Select Dropdown showing scrollbar when clicked on it first time in html angularjs

The thing is that I don't understand why that BookingType/PriceType dropdown is not showing the whole dropdown, why is it showing the scrollbar. Note: this scrollbar is seen only its being clicked ...
0
votes
0answers
23 views

Error:“The anti-forgery token could not be decrypted.” for machine generated key in ASP.Net MVC 5 app

I am trying to implement AntiForgeryToken in our existing Web application which is ASP.Net MVC 5 application with AngularJS front end. Following is the code for my BaseFilter: public class ...
0
votes
0answers
24 views

Unable to open Angular app within an iFrame using IE11 - `Websocket Error: Network Error 12029`

I am running an AngularJS (1.3) that communicates with an Angular 7.x which opens within an iframe, when using modern browsers this is fine - however using Internet Explorer 11 the iframe doesn't open ...
1
vote
2answers
45 views

How to populate dynamic options for multiple Selects inside a ng-repeat

I am adding dynamic rows by clicking "add Row" button in an Html form. In a row, I have 'Country' select and 'State' select. Whenever i select country, states are populated properly in first row and ...
-1
votes
0answers
28 views

data-toggle=“buttons” input radio doesnt working angular?

this code is part of angularjs template I have to use the input radio of main chart, but I note if I remove this part data-toggle="buttons" I can use the toggle between radio buttons only. WHY? ...