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

How to capture the scroll to bottom event in AngularJS8

I am creating a page using angular component. The html file has html elements and *ngFor . The page has list of 20 products. When the user scroll to the end of page , I need to make a server call and ...
0
votes
0answers
3 views

I want to open modal which is in angularJs, from Angular 5 with help of URL

this is code to open modal i want to open it anywhere in my code (also in angular 5) with url ` $scope.userInfo = function(user) { $scope.pageScope.hideSaveDetails = false; $scope....
0
votes
0answers
12 views

Directive model value not updating parent

I am trying to create a directive that is bound to a model value with two way binding. After doing research I think what I have is correct. But the model value does not get updated in the parent. I ...
0
votes
0answers
11 views

Update ionic angular js to version 1.7.8 “TypeError: Cannot read property '@' of undefined”

I have this problem after upgrading Angular js to version 1.7.8 of my ionic project: TypeError: Cannot read property '@' of undefined at a (ionic-angular.min.js:18) at Object.<anonymous> (ionic-...
0
votes
0answers
16 views

Failed to fetch data in the DOM from the local DB

In my project, I am retrieving data from a local DB and fetching it to the DOM. Out of three pages, two are hard coded and I can see the data in the DOM, but the page which is linked with the local DB,...
0
votes
0answers
26 views

AngularJs - Populate the tables by checking header names

I have two objects one contains selected records and another contains selected fields. Now I need to populate the table dynamically by checking the column header name or value. I referred Populate ...
0
votes
1answer
14 views

Controller is stops getting instantiated on re-enter

I am using angularJs UI router. I defined two controllers like this: .state('menu.test', { url : '/test/', views : { 'menuContent' : { controller : 'TestController' ...
0
votes
0answers
48 views

How can I display items/data under each category? Should I use Lists or nav?

Image here shows a templete how I want to create. I'm using Laravel and I'm displaying the items from database. I am trying to put them under one category and similarly other items to other ...
0
votes
0answers
14 views

How to resolve '$injector:cdep Circular Dependency' error in case of custom services [duplicate]

I have 2 services, CommonService, CommonService.$inject = [ // Angular Built-in '$log', '$filter', '$sce', // Constants 'AnnualCompensationCst', // ...
0
votes
1answer
41 views

Why is the data from $http GET is not being sent in the request? [duplicate]

I have a GET method in my C# controller public async Task<IHttpActionResult> GetEmailTemplate(List<string> ids) and I'm calling it in angularJs like so: $http({ method: 'GET', ...
0
votes
0answers
24 views

ngTable search filter just works on the current page, whereas I want global search

I'm using ngTable in Angularjs to implement pagination and search. The pagination works great, however search only works for the data visible on current page. How can I make a global search on the ...
0
votes
0answers
17 views

How to display XML http request array value in angularjs

In here I want to create Download Count for each song in the play list in laravel 5+. XML http request was created correctly. The problem is, how to display that array Downloads count value in ...
0
votes
0answers
29 views

How to put two texts in one column of header in a table in html

I want to add these two texts -text1 and text2 in one header of the table using html(working in angularjs). I expect the text to be present in the single cell itself
0
votes
2answers
42 views

What can I do to print all the data of that particular option from the table in the Database?

I have a dropdown list, taking its options from database. Can I know what can be done to fetch all the details of that particular option? NOTE: I have used Laravel all along <select class="form-...
0
votes
3answers
36 views

How to add some Jquery code in angular Project [duplicate]

I'm trying to add some Jquery Code in Angular application but showing an error because I don't know how to use that Jquery code in the angular if I running in HTML file working fine below is my sample ...
0
votes
0answers
26 views

Get angular application html page with module elements

I am trying to get html element of an angular app but when I am using request module, I am only getting the source which has module tag but not the actual rendered html page. Is there any way I can ...
0
votes
0answers
12 views

How to include hotjar tracking code in directive in angular 1.x?

So I have a tracking code as follows: I want to use it in directive <script> (function(h,o,t,j,a,r){ h.hj=h.hj||function(){(h.hj.q=h.hj.q||[]).push(arguments)}; h....
0
votes
1answer
57 views

Modal on button click does not display

Trying to launch a modal upon a button click. I can console.log "button clicked" but the modal will not display. Please help me find where I am going wrong. Been looking for a while but I am somehow ...
0
votes
1answer
32 views

How to show scope variable value in template in angularjs

I want to show update variable in my template.While selecting a file,it's change event catching function inside I'm changing my scope variable.But it's not showing in my template. Here is my html ...
0
votes
1answer
23 views

gocd - No 'Access-Control-Allow-Origin' header is present on the requested resource

I want to upload artifacts to a gocd pipeline using their API which is POST /go/files/:pipeline_name/:pipeline_counter/:stage_name/:stage_counter/:job_name/*path_to_file. I have nodejs application ...
0
votes
0answers
33 views

DateTime value NULL when UI culture is Auto

I'm having a application which I want make compatible for both US and UK region, and for US region I'm able work with date successfully, where as for UK below is the scenario I have date field, when ...
1
vote
1answer
31 views

Make a list with ng-repeat, separated by “custom categories” (AngularJS)

I need a create a list with values that people will enter in a list, and I need to display them separated by Category, only problem is that I don't know which Category they will use for each element, ...
-1
votes
1answer
9 views

Will ngwebdriver with appium for iOS app testing works?

We have a Cordova angular mobile app on which we are trying to achieve automation testing and as team is not familiar with javascript -trying to avoid using protractor tool. Instead can we use ...
0
votes
0answers
15 views

How to exclude results on ng2-completer?

I have implemented a remote sourced completerService: this.dataRemote = this.completerService.remote( null, null, "ADDRESS"); this.dataRemote.urlFormater(term => { return `...
-1
votes
0answers
17 views

Upload FIle with Angular JS and PHP

I am trying to upload a file with Angular JS and PHP using a formdata object. I would like to use key1 (data) value to be JSON so I can pass the filename and user info etc. to the php script I ...
-1
votes
0answers
10 views

Window.print nao funciona com iframe no angularjs

Estou com um problema, utilizo o comando window.print() para realizar impressões na pagina. Utilizo um iframe para mostrar e imprimir um pdf em base 64, após este iframe ser renderizado, o comando ...
0
votes
0answers
12 views

Angular/AngularJS hybrid application asset segregation

I have an Angular 8 application (generated with angular-cli) which uses the UpgradeModule to bootstrap an AngularJS application. I am also using the angular-hybrid router from ui-router for routing ...
0
votes
0answers
18 views

$http returns null data , status -1, ONLY on android when sending http requests

I have a cordova + angularjs app It sends some request to some rest apis, when I rum my app on browser (cordova run browser) everything is working, no CORS issue, no other errors the problem is ...
0
votes
1answer
33 views

AngularJS - track inner $index across multiple ng-repeat loops

I'm attempting to list out a nested data structure while maintaining the inner $index as a running index. To illustrate, this is what I want to achieve: Category Name 1 1. Foo 2. Bar 3. ...
0
votes
0answers
27 views

DevExpress - How to disable editing of one cell if another cell has value

My problem is the following: I have a DevExpress dataGrid where there are several rows, among them there is one called Variety and another VarietySupposed. My problem is that I cannot block the ...
0
votes
0answers
50 views

How to use an angular function in my case?

I have to hide some button in an html page and for this I wanted to use a line that is located in another html file of mine, the ng-if="category.layers_count > 0". enter image description here ...
1
vote
0answers
24 views

send a collection of documents from the VIEW(controller AngularJS) to the CONTROLLER in ASP.net MVC

I am working with MongoDB (non-relational database) I try to send a collection with two documents, I fill the collection very well but at the time of sending it arrives without the documents.. ...
0
votes
0answers
35 views

AngularJS Custom Directive passed function undefined

So I have created a directive that when clicked should behave much like ng-click`, meaning whatever function is passed through the html should work. When i log the attributes etc it shows the function ...
-1
votes
0answers
33 views

Inner list item is not opening after using stopPropogation() method

I have nested list inside list.which is not opening after using stopPropogation(). I want to open a submenu list after a click on a list item. to open that sub-list i am passing that list "id" and ...
-1
votes
1answer
27 views

Inseting table inside table in angularjs

With reference to this code,if I am having three columcolumns (eg: including mrks after sub and the mrkd also have different number of rows like subjects.What change should I do now? add multiple ...
0
votes
1answer
44 views

Recursive directive in angular js

I created a custom directive. angular.module('menu',[]) .directive('Menu',function(){ return{ restrict:'E', replace:'true', scope:{ ...
0
votes
1answer
35 views

AngularJS code data-binding through function is not working [duplicate]

When I click the button, default/init values are appended into the textArea but when I try to change the text (firstName/ middleName / lastName) in their respective field, clicking the button has no ...
-1
votes
0answers
11 views

Angularjs 1.x Textangular editor uploading images from local machines

I am using textAngular for text editor where i want to upload images from local machine. I am currently storing s3 and fetching the URL but not able to append. $provide.decorator('taOptions', ['...
0
votes
0answers
22 views

unable to bind data of api to Bootstrap Multiselect dropdown using ng-options

I've below code for Bootstrap Multiselect dropdown. Html: <!DOCTYPE html> <html> <head> <script src="Scripts/angular.min.js"></script> <script src="Scripts/...
0
votes
0answers
11 views

If remove #! , then Whitelabel Error - ( AngulaJS with Spring Boot ) [duplicate]

i am facing one Issue in my code, I am using Spring Boot with Angularjs In that i was removed '#!' from url and its work fine , but when i refresh my page this time its show Whitelabel Error i was ...
0
votes
1answer
34 views

Error while loading controllers - migrating AngularJS1 to Angular6

I'm trying to do upgrade components written in AngularJS1 to Angular6. I'm taking the approach of having the wrappers for all the existing AngularJS1 component by extending "UpgradeComponent" placed ...
0
votes
2answers
44 views

AngularJS change in directive's scope not updating parent controller scope

HTML: <div ng-app="myApp" ng-controller="Controller"> <test ng-if="toggle" props="condition"></test> </div> Javascript: var myApp = angular.module('myApp', []); myApp....
0
votes
0answers
19 views

Ionic 1 caching js lib

I've inherited an ionic 1 app and i have a strange problem with it. I've updated a js lib (paho mqtt client), because it was an old version that had problems. I've tested the update with lots of ...
0
votes
0answers
36 views

Passing value of ng-repeat into rezor variable [duplicate]

I want to pass a value to rezor variable from a ng-repeat. <tr ng-repeat="Content in Contents | filter: searchstring" class="ng-scope" style=""> <td> <div class="editbutton" ...
0
votes
1answer
45 views

AngularJS after reassign directive's received parameter to local variable then view not updating

HTML <div ng-app="myApp" ng-controller="Controller"> <test text="vartext"></test> </div> Javascript myApp.controller('Controller', ['$scope', '$timeout', function($scope,...
0
votes
0answers
33 views

Click post link to display full results on another page

I want to click on a link with id from database (on posts.html page) then view the full content of that post link in a display.html using AngularJS, MySQLi, and PHP. Please see the image below: here ...
-1
votes
0answers
20 views

Removing $injector service from Circular Dependancy Issue in anguarjs [duplicate]

I am working on angularjs project. We have injected few services using $injector service (Directly injecting service one service into another created a circular dependency problem. That's why we have ...
1
vote
1answer
42 views

AngularJS $scope vs this [duplicate]

I'm beginner using AngularJS, and I have a question to ask. I call a rest api to get comments by blog id, like following: _getAllCommentsByBlogId(1, _convertComments); function ...
0
votes
0answers
26 views

AngularJS unit-test outside the browser

Dumb question of the day. Is there a way to unit-test legacy AngularJS code outside the browser in a nodeJS environment? I'm currently stubbing out the entire browser in a Jasmine helper.js file as I ...
0
votes
1answer
32 views

Asp.Net MVC Razor app with AngularJS migration to Angular 8 [duplicate]

I have a .Net web app running .Net Framework 4.6.1 with Razor and AngularJS 1.7.5 and we wish to migrate to Angular 8. Routing is being done in .Net. The HTML contains both Razor and AngularJS ...