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
1answer
18 views

using lodash _find to return true or false

I'm trying to use lodash function to find if it satisfies the if statement. When the code has run the code which 'return false', it stills continue execute the _find function and did not return the ...
0
votes
0answers
7 views

How to display array with ng-repeat

I have an json array of the form": { "School1": [{"name": "john", "age":"28"}, {"name": "paul", "age":"27"}], "School2": [{"name": "david", "age":"27"}, {"name": "...
0
votes
0answers
8 views

How do I load an angular route from a code in Electron JS?

I wrote a simple Electron JS app with Angular JS and angular-route.js. Routing works from links (e.g. <a href="#!/route1">Route 1</a>) but I can't figure out how to trigger a route change ...
0
votes
1answer
9 views

Using Angular Material ToolTip but can't select text on element beneath it

I have an angular material tooltip used to display information when hovering over a columns cells in a table element. On top of this functionality I also require users to be able to select the text ...
0
votes
1answer
13 views

How to find and replace a specific text on a page

How to find and replace a specific text on a html page using AngularJs That text is on a third party component so the id and the class is keeping changing. What I can reference is the text itself ...
0
votes
1answer
17 views

How to get jquery function to work with angularJS?

I have an accordion menu which uses jQuery in my angularJS application. It's not currently working as it should do. I have commented out display: none; for .menu-navigation ul ul in the css to show ...
-1
votes
0answers
8 views

AngularJs $http call asmx web service got 500 Internal server error after I add header

My angularJs client is using $http to call my backend asmx web services. Recently, I added an Authentication header into my $http call. It works fine on my localhost development server. After I ...
0
votes
0answers
8 views

animation class fails to be called on a false value with AngularJS 1.7

I'm scratching my head trying to understand why the animation portion of my class isn't being trigger on a false value: <h4 ng-class="subscriber.status ? 'animated bounceInRight text-success' : '...
0
votes
1answer
7 views

How to load controllers on my angularjs file in MEAN stack

I'm trying to load a controller content with its functions in my angular core file like this, in order to get the code separated and with more organization, but I receive this error: Uncaught ...
0
votes
0answers
12 views

Angular datatables sorting issue

I'm using this example https://l-lin.github.io/angular-datatables/archives/#!/bootstrapIntegration to configure my data tables. The problem is it won't sort the date and double price. So far I try to ...
1
vote
1answer
18 views

How do I enter just one time in a socket.on()

Right now im trying to call a windows.print() inside a socket.on() using a button, the problem is when I press the button multiple times it keeps adding the previous call to the new one. https://...
-1
votes
1answer
17 views

I get 'is not a function' Error when calling Factory method from controller in angular.js

I'm trying to call a factory method in angular.js from my controller method and it throws an error 'is not a function' Here's how the factory looks: function getData($q) { var getMessages = ...
0
votes
0answers
6 views

Prevent click on other item than the swiped item

TLDR; How to prevent click on other item when there was already an item swiped open or was going to close. Every item in the list has detail page (upon tap/click) and swipe-able. Actual behavior ...
0
votes
0answers
11 views

server side validation in kendo grid for angularjs

I want to handle server side validation, I'm using webApi and kendo grid for angularjs. This is the model: public class Employees { public Employees() { } public int ID { get; set; } [...
1
vote
0answers
14 views

AngularJS ng-repeat for one row in PDO fetch

I am newer to Angular and seem to be having difficulty finding out why I'm getting blank fields. I'm using the 1.7.7 version of angular-min and angular-route. The data is being pulled from a table ...
0
votes
0answers
26 views

How to show a hashmap inside array and add columns dynamically?

response =[ host1: { key1:someValue, key2:someValue2, key3:someValue3 }, host2 :{ key1:someValue4, key2:someValue5, key3:...
0
votes
1answer
13 views

How do you add a value to datepicker from an Angular Factory?

i have an Angular Factory that gets a single date from the backend of my spring application, and i wanted to add it to an Input so the calendar input is always set with the date obtained from the ...
0
votes
1answer
12 views

AngularJS child components

How is it possible to have nested components with AngularJS, ie: var parentComponent = { template: `<div class='parent'>CHILD HERE</div>` }; var childComponent = { template: `<h1&...
1
vote
0answers
23 views

Recursion angular directives

I need to use recursion in angular directives. Follow the code with the template without recursion. It is a left menu that must be created recursively. I'm not sure how to put the recursion. I ...
0
votes
1answer
15 views

form data is not appending file object

I have a problem in appending file object with form data,after appending file object to form data,form data is empty object.Please suggest scope.uploadDigitalSignature = function (form) { if (...
-6
votes
0answers
32 views

How to get last insert id from one table and save it to another table Angular

How i can get last inserted id from one table and save it to another table? I'm using Angular and sequelize. My code: var objectToSave = { name: $scope.reasonname, }; ...
0
votes
0answers
29 views

Angular routing - attempting to link to HTML file outside of app

I have a PhoneGap application which contains an Angular app (although not all of the app is built using Angular). Users choose between a HTML5 app and the Angular app: myApp -- mainMenu ---- ...
2
votes
2answers
43 views

Retreiving filteredItems from ng-repeat in controller through $scope doesn't work

I am trying to get filtered items from ng-repeat but I get undefined when console logging the value of $scope.filteredItems. I even tried the solution provided in Can't get the filtered items from my ...
0
votes
0answers
10 views

How to get id from one table and save to another table using angular

The situation is: I have one submit form with one input box and four checkboxes. I have two tables in a database.One table for input box records(called "reasons") and one table for checkbox records(...
-1
votes
2answers
21 views

Angular Api get request issue

So i want to use angular to get a certain value from this api: https://ergast.com/api/f1/2013/driverStandings.json i am using at the moment app.controller("api", function($scope, $http) { $...
-2
votes
0answers
43 views

How to fix CORS request did not succeed issue

Actually I'm new to ionic framework, I'm facing the issue while passing a request to REST API. It shows an error: Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote ...
0
votes
2answers
38 views

console.log not printing anything

Can anyone please explain why console.log suddenly stopped to work? I'm trying to debug an exercise for an Angularjs class and at a certain point, console.log was not printing anything anymore. I'...
0
votes
0answers
10 views

Value is set in $onInit but undefined in function

I have a link that navigates to a router: ui-sref="dashboard.tasks.overview.details.information({ id: activity.task.id, showTaskDetailView: true })" In this link I pass a showTaskDetail: true ...
1
vote
0answers
15 views

How to configure SonarQube for Typescript based AngularJS project?

I have set up SonarQube and SonarScanner and managed to scan my project. I can see the metrics on my screen except for code coverage, which is always 0%. What am I missing? #----- Default SonarQube ...
0
votes
1answer
41 views

MEAN stack app do not load images while accessing from another device than localhost

I'm building a Book sharing site for practicing MEAN stack as I'm new to it. Everything works pretty fine in my local development environment in localhost. It retrieves posts, images and everything. ...
0
votes
1answer
18 views

Unknown provider: attrsProvider <- attrs

while accessing attrs from my child controller its gives this error > Unknown provider: attrsProvider <- attrs Here is my code: var app = angular.module('plunker', []); //parent ...
0
votes
1answer
35 views

services throwing error in the controller as function not defined

amcApp.service('utilService', function ($http, $q,$rootScope) { var getSupportTypes = function () { var deferred = $q.defer(); $http.get($rootScope.BaseUrl+'vendor/supportTypes') ...
0
votes
0answers
22 views

Change value of input in ng-repeat Angularjs

I want to change the value of input with in ng-repeat. I want to add prefix as '@' to my input field where object.visible is false. Please suggest a best solution. Below is my code structure. <...
0
votes
1answer
38 views

Get form input value from angularjs

I'm using Angularjs to submit the form then pass the value to my laravel function. This is my HTML code <form class="form-horizontal" method="post" name='form' novalidate ng-submit="submit()" ng-...
0
votes
0answers
15 views

Angular JS - HTTPS call with certificate validation

I know the component $http will call both http and https urls. But how do I use a certificate and make a validated https call to an https API. Something like $http({ url : 'https://myurl', ...
0
votes
0answers
18 views

How to print md data table without order by arrow icon

code pen link [Use above image as reference 2 I am using angular-material-data-table js Code pen link - https://codepen.io/anon/pen/BjvLVJ?editors=1010 I tried following code var ...
0
votes
0answers
18 views

Angular JS - Rest API - Authorization sent from browser but not received in server

I have a spring boot application with basic spring security enabled. And I have a web application written in Angular JS When I make a rest call, I can clearly see the Authorization header being ...
1
vote
1answer
36 views

Angular js how to play a video (video player)

Below on my HTML code that is how i loaded pdf and image documents and it seem to work. But I cant seem to load ang play a video? it does not work, is there a directive for that ? do i need a player ...
-1
votes
2answers
32 views

Is angular 1.x still relatable

Have a few projects in angular 1.x and wondering if its really necessary/efficient to move them to angular 4 / later. Smaller dashboards would not be necessary as it is used internally by minimum ...
-1
votes
1answer
16 views

I created a calender using Angular JS

I designed calendar from HTML and CSS, But I need to add Some Angular JS to my calendar. I'm new to angular js. So can you edit my code to add automatically Date and month to my Calendar from Angular ...
0
votes
0answers
30 views

AngularJS with Grafana plugin - Error: [$controller:ctrlreg] controller is not registered

AngularJS ngResource not working - Grafana plugin I am currently working on a Grafana plugin, and I'm having some issues at angularJS's module system. What I'm trying to do actually is creating a ...
0
votes
0answers
27 views

Angular UI Grid: how to fill a dropdown filter with real data from database/backend

I've been struggling for more than 1 day trying to find a solution to pre-fill angular-ui-grid dropdown with data from the backend. And yes, I've seen many similar questions, but none of them talks ...
1
vote
0answers
27 views

angularjs material doesn't import scss styles

I'm working with angularjs material, in angularjs 1.7.0 I need a multiple select imput with autocomplete function, so I'm using material chips. The problem is that the styles are not being imported. ...
0
votes
0answers
15 views

prevent scroll height change on update of page's elements [duplicate]

In Angular JS 1.6 (I know it's old— Legacy software), I noticed when I update an array of objects (let's say pushing n new items into array) displayed via ng-repeat, it updates the scroll position of ...
0
votes
1answer
41 views

Angularjs problem using ng-model and `value` together

I have a form and this form have some values. Input values are set using json data: <input name="name" ng-model='user.name' value="{{user.name}}"> I want to use a different ng-model: <...
0
votes
0answers
14 views

ng-file-upload chunk file with md5hash

I've been using ng-file-upload which has worked great. I'm uploading files to S3 and the process involves these steps: generating an md5 hash of the file getting the file url to post to uploading ...
0
votes
1answer
19 views

AngularJS md-select Ties two select values together

I am trying to create a multi-select in angular where one of the elements in the array being selected from is a clone of another element in the array. This cloned element has some fields changed in it....
0
votes
0answers
18 views

Remove element based on attribute directive angularjs

Is there a way to select the attribute directive (restrict: 'A') and then remove it from the DOM. For example: <div my-attr-directive>blah blah</div> Then removing it would be something ...
2
votes
1answer
26 views

Angular Front-end, Java Back-end best deployment pattern on Docker

What could be the best deployment pattern of an Angular front-end talking to a Java back-end, both running on Docker. What are the cons and pros of each pattern, as listed below: Angular+Java -> One ...
0
votes
1answer
31 views

Deletion with API sometimes works and sometimes it does not

I am trying to delete files from folder with API call. It seems to work randomly, some files get deleted, some don't. The data structure is as follow: Each folder object has files property. In ...

http://mssss.yulina-kosm.ru