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
8 views

ionic 2 build crashes after updating the API level 28 google play policy

ionic info Cordova CLI: 7.1.0 Ionic CLI Version: 2.0.0 Ionic App Lib Version: 2.0.0 OS: Node Version: v6.11.0 plugin list : com.jcjee.plugins.emailcomposer 1.4.6 "Email Composer with Attachments" ...
-1
votes
0answers
13 views

Form doesn't submit on enter on input inside ng-if (angularjs)

I have situation like this: ... <form ng-submit="$ctrl.submit()"> <some-component-with-inputs> </some-component-with-inputs> <input type="submit" /> </form> ... ...
0
votes
0answers
11 views

Customization to Forms using metadata

I have a design question and want to bring in the modern Ui, modern micro-services based framework. The technology what we are using is spring boot*, Angular Js. What is the trend in 2019 when it ...
0
votes
1answer
20 views

Alternative approach for multiple button click in angularjs

I am just wondering is there any better way to approach same kind of logic as below. 4 buttons onclick of it have to send parameters like (english, german, spanish, french) to angular function. Is ...
0
votes
2answers
38 views

AngularJs ng-repeat does not order time list after scope change

I try to reorder ng-repeat list after $scope change <div ng-repeat="item in model.itemList | orderBy:order"> <input ng-blur="setOrder('start')" ng-change="timeSpanChange(item....
1
vote
0answers
20 views

Electron does not load index.html correctly, files from local folder are not loaded

I am trying to run via electron the following web app: I am retrieving index.html like this: win.loadURL( url.format({ pathname: path.join(__dirname, `/dist/index.html`), protocol: "...
0
votes
1answer
27 views

element in span with ng-bind not displayed

Here my problem. <span class="col-sm-3 col-md-3" ng-bind-template="{{controller.getToolTip()}}"> <span class="icon " ng-class="controller.getIcone()" aria-hidden="true"></span> &...
0
votes
0answers
8 views

ui-select-no-choice message is displayed if the text length is zero

I am using ui-select for autocomplete functionality and if there are no results for search criteria then i am using ui-select-no-choice to display message back to the user. <ui-...
0
votes
0answers
11 views

Show Invalid File Type error message using CKEditor in AngularJS

I am using EasyImage plugin in CKEditor 4.13 to upload images on Angular JS web page. By default user can only upload file of Image Files types only. But if the user changes the type from Image ...
0
votes
1answer
20 views

KendoUI for AnfularJS Grid toolbar custom button swatch visibility

I need to add custom buttons to a Kendo Grid toolbar and switch visibility of each other by clicking an another one (e.g. Button1 click hides Button1 and shows Button2, Button2 click hides Button2 and ...
0
votes
2answers
27 views

Content Showing Undefined when Adding wrong value but not right one

I'm trying to add data from a json file to the HTML table below: Under (var i = "0";) I get undefined, but when I change it to (var i = "dv";) I get nothing. Not sure where i'm going wrong and what ...
1
vote
1answer
26 views

Input value contains specific characters anywhere

I have a directive that validates an input field to make sure it doesn't contain &, <, > .directive('refValidate', [function () { var regExp = /^[&\<\> ]*$/; return { ...
0
votes
3answers
47 views

Add new datas into existing scope-angularjs

I have started to learn angularjs, I am trying to insert new values on button click with existing scope. I have one button in my page,whenever I click that button $scope.options method triggered some ...
0
votes
1answer
15 views

Conditionally add attribute to component

I have a register-task-popup component which can use the personId data: <register-task-popup person-id="${personId}" chat-customer-information='${JSON.stringify(chatCustomerInformation)}' &...
0
votes
1answer
25 views

$window.addEventListener is working only first time, but next time on wards not working through $watch

$window.addEventListener is working only first time, next time on wards not working whenever network status change in angularjs with worklight 8 app.factory('onlineStatus', function($window, $...
0
votes
0answers
12 views

Unit Testing: Error Can't bind to 'toolTipDirective' since it isn't a known property of 'span'

The Jasmine Karma, unit testing keeps on failing whenever I run it due to the directive I've placed in the HTML. How do you resolve this? Additional error message: <span [ERROR ->][...
0
votes
0answers
6 views

AngularJS animation from 1.1.5 to 1.5.1 slide in issues

I'm trying to do a slide in animation when ng-show is invoked. The element will slide in from the right. If I'm using 1.1.5 , it works perfectly as show in this fiddle (https://jsfiddle.net/sbcjdqwk/...
0
votes
0answers
8 views

AbgularJS drop down hold the selected value after screen refresh

I'm Developing requirement for an application using angularJS which is an existing application. Its a search screen where we have 3 drop down box. Everything works fine in search screen based on ...
0
votes
1answer
33 views

how to delete all records from the table using entityframework in mvc

I want to delete all the records of the table. I am able to delete based on id, but I don't want based on id. My sql server table name is [EnergyMonitoringDB].[dbo].[Energies] How to delete it. The ...
0
votes
0answers
35 views

how to toggle only 1 submenu on li ng-click and not allow another li to open?

I have a working menu after reading the docs and examples & implementing it with basic ngAnimate - css3 transition but I really don't know how to go about it so bare with me. how to toggle only 1 ...
-1
votes
1answer
10 views

How do I increase the space between the Legend and the Chart when using angular-chart.js?

I'm using angular-chart.js to create a chart and have increased the point size quite a bit (8 from the default of 5) to improve visibilty for our users. Doing so makes the points of the line chart ...
0
votes
1answer
41 views

Angularjs $HTTP POST JSON data to server issue

I'm trying to send JSON data from a front-end form (angularJS) to the server (express/nodejs) then to MongoDB. However, I can't seem to send the data, when I log the data at the server end it gives me ...
0
votes
2answers
24 views

Attempting to load list of values in column for Angular Table

I'm struggling with trying to figure out what I'm doing wrong, mostly down to not having a good understanding of AngularJS due to being new. The main goal is that I'm trying to list out all the values ...
0
votes
0answers
21 views

AngularJS multiple number counter end all at the same time

I am trying to have 4 number counters that start at 0 and go to an undetermined amount, in my demo I have chosen 4 numbers: 708687, 784, 19.9, 567856. These 4 numbers are passed into the directive and ...
0
votes
1answer
28 views

How to write jasmine unit test for an angularJS factory method without mocking it

I want to unit test a factory method without mocking the actual method call. How can I do it? Below is my factory and I need to test factory method without mocking it. angular .module('core.app')...
0
votes
1answer
26 views

Angular Router not updating browser URL when called from AngularJS

I have an AngularJS application, which I'm in the process of converting to a hybrid Angular/AngularJS application using ngUpgrade. The AngularJS application is unusual in that it doesn't use the ...
0
votes
2answers
33 views

get popup calender in c#

how can i show a popup calender in a form,when anyone trying to input date. Code <form class="form" novalidate name="f1" ng-submit="CustomerReg()"> <div class="form-group"> <...
0
votes
0answers
17 views

AngularJS UI-Select tagging doesn't work for new tag in Google Chrome

I am using ui-select v0.19.6 in my project with AngularJS (v1.x) I have following code for displaying a component where a user either can pick from the existing dropdown or create a new tag. <div ...
-1
votes
0answers
11 views

St-table sort and search not working for special char

I am having st-table with dynamic columns and want to add searching and sorting functionality for every column. It works fine when having column name simple in one word and without any special char ...
0
votes
1answer
19 views

Javascript cookie not getting deleted on expiry in angularjs application

I need to store a cookie with an expiry period as 4 minutes in an AngularJS application controller. My code: var d = new Date(); d.setTime(d.getTime() + ( 4 *60*1000)); var expDate = "expires="+ d....
0
votes
1answer
17 views

How to use ng-annotate with hybrid app based on angular-cli

I'm working on an Angular.js project written with TypeScript. We're trying to evaluate whether to upgrade to Angular 8 and we're stuck with how to use ng-annotate with angular-cli's webpack ...
1
vote
1answer
28 views

How to Identify scope object has a value

I am unable to identify with the format of the scope variable, whether it has a value or not? I have a scope as $rootScope.responseAllFilters.selectedCodeFrames: First the list is empty as shown ...
0
votes
0answers
29 views

javascript cookie not getting deleted on expiry [closed]

I am writing a cookie with expiry period as 4 minutes inside an AngularJS application controller. code : var d = new Date(); d.setTime(d.getTime() + ( 4 *60*1000)); var expDate = "expires="+ d....
0
votes
0answers
21 views

Which client framework is best among Blazor, Angula and React with asp.net core? [closed]

I have developed asp.net core web apps using mvc and razor. Now I have been thinking about client frameworks compatible with asp.net core project and I come across 1. Blazor 2. Angualr JS 3. ...
-5
votes
0answers
29 views

How do I tell if someone is on a specific link [closed]

Imagine you are in a office and there is about 20 of you all in there. You are on your company portal site working on a few things, however only 1 person at a time can be on this company portal site. ...
0
votes
0answers
17 views

Is it Possible to fetch Data from Influxdb directly and render it on Angular Dashboard?

I have an Instance of Influxdb running with few Databases & measurements which is storing machine generated data all the time and I want to fetch the Data from InfluxDb and render it on my ...
0
votes
0answers
24 views

disable external button in angularJs when form is invalid

I have a form in angular js and a button (angular material md-button) outside of the form. I want to disable the button when the form is invalid but access the form from outside is seems impossible :( ...
0
votes
1answer
14 views

Angularjs: How to multiply total got from total filter in angularjs for showing total in different currency value?

I am using angularjs for a reporting app and i need to show total value in multiple currency. I obtained total making my own filter and applying it as such: My filter file app.filter('sumByColumn', ...
0
votes
2answers
33 views

Angular date display format

<td ng-bind="Order.created_at"></td> Displaying output as 2019-12-08 10:34:06 how to show it as 08-12-2019 10:34:06
0
votes
1answer
22 views

Button not working inside a div which has ng-click

i have a div with ng-click inside that div is a button, when i click the button the function bind with ng-click always execute but not the button, how to just execute the ng-click of button only <...
0
votes
0answers
29 views

How to Close the popup box in angularjs

Actually, i want to close the popup when i click the submit button but right now it is not closing the popup box. please check my code, and let me know what I'm doing wrong. My code : <div class="...
0
votes
0answers
18 views

How to show data received from an Arduino device via Bluetooth in RealTime?

So we have a device which calculates various parameters like Heart Rate, BP etc and we need it to communicate with our Android App in realtime. The Android app is a Cordova App with AngularJS as its ...
0
votes
0answers
12 views

How to use an angular material autocomplete inside a table for editing inline

I have an angular material table and it has inline editing in it. at the moment I use a select component to show a list dropdown and bind its value back to the model. I was hoping to change the select ...
0
votes
1answer
34 views

Connect to the same database but localhost datetime difference vs server host datetime

I'm using AngularJS v1.7.2, ASP.NET Core MVC, SQL Server. I have a problem with field Datetime load from db. Something like below: In database server from Korea. In MVC C# DateCreated = (DateTime)...
0
votes
1answer
22 views

How to access scripted classes loaded into a page inside Protractor tests?

I am newbie with protractor -- having a bit of trouble accessing an object defined in script loaded into the page being tested. Here is the test: describe('test SortedMap', function() { ...
1
vote
1answer
27 views

How can I list the first indexed row for multiple items in AngularJS?

I am looking to create a table that is specific to the index number that can be matched in multiple items. So for example, if I want just the items for index [0], I want it to output: 1a 2a 1b 2b ...
0
votes
1answer
23 views

Add Interceptor in Controller

I have read several articles on how to add Interceptors for the $http service e.g. in .config method before the application runs. My question is: is it possible to do the same in the controller ...
0
votes
0answers
23 views

UI disappears when passing message in node-red ui-template in angular

I have a large list, and I am formatting it as a table in Node-Red Dashboard using a ui-template. I use md-button for each line, to generate a button so the user can do something with that line in the ...
-3
votes
1answer
37 views

Migrating from AngularJS to Angular 8. Where to begin? [duplicate]

I am tasked with migrating a large software project from AngularJS, that still uses directives, over to Angular 8. Where should I begin and are there any tips for this migration?
0
votes
0answers
33 views

Add current year to regex expression

I have this regex expression in angularjs that only allow years from 2019 to 9999. ng-pattern="/(?:2019|20[2-9][0-9]|2[1-9][0-9]{2}|[3-9][0-9]{3})/" How can i change the 2019 to a dynamic year? i ...