Skip to main content
Filter by
Sorted by
Tagged with
1 vote
1 answer
54 views

Why the ng-pristine class in AngularJS form always returns true. enter a value in the input field and click the button, it does not return false, it returns true. test.html <div ng-app="...
김영민's user avatar
0 votes
1 answer
35 views

I'm setting a $scope variable to 0 or 1 based on a successful action and showing elements with ng-show. I'm resetting the $scope variable to empty when the step is finished. However, I have discovered ...
begeleiding's user avatar
1 vote
0 answers
28 views

My current situation right now is rather tricky and I've been bashing my head for two days straight trying to fix this problem. I have accordion sections in which there is a space reserved to add/...
Antony Lacerte's user avatar
0 votes
1 answer
33 views

I am refactoring some angularjs with a new directive and I am trying to access a controllers scope from the directive. Here is the directive: (function () { /** * Config */ var ...
Vadim Buryakovsky's user avatar
0 votes
1 answer
63 views

I want a different image url each person profile everytime they’re profile details appeared. But what happen is it’s only targeted the last url on $scope.imgSrc so they have all same pics which is I ...
Hilario Abe's user avatar
1 vote
1 answer
140 views

I want to console.log or target the string of an object inside array with angularjs but it doesn't work. Please help me I'm still new on angularjs. Here is what I'm trying to do. <!DOCTYPE html> ...
Hilario Abe's user avatar
1 vote
0 answers
85 views

The HTML template contains the nested directives. The child directive will create the element or fields based on the data injected to it. So field can be type of dropdown, input field etc. I suspect ...
Aniket's user avatar
  • 11
0 votes
1 answer
102 views

I have a select Dropdown created using AngularJS. We have set a limit to show the top 5 items and the remaining 5 items should be visible to the user . when he clicks the 5th item with the name "...
user2918673's user avatar
2 votes
0 answers
288 views

Is it possible to render AngularJS component inside React component which is rendered from an AngularJS component. I have a specific scenario where: <angularjs-component-1> <react-...
Marko Tomic's user avatar
2 votes
2 answers
54 views

This is my angular controller that performs the post function app.controller ('accountsCtrl', function($scope, $http) { this.accounts = { code:"", account_name:"", description:...
phenomT's user avatar
  • 43
0 votes
1 answer
44 views

I have a HTML page with a textbox and table to display data <input id="search-term" type="search" placeholder="Search..." ng-model="vm.term.search" ...
Computer's user avatar
  • 2,247
0 votes
1 answer
87 views

I have created a directive in which i am parsing a variable "count". In my page there is a dropdown and "count" gets updated whenever dropdown value is changed. I have created a ...
aryan's user avatar
  • 43
0 votes
1 answer
102 views

I've got some code in AngularJS here working half percent (I will explain) : <button ng-class="{'svgMinus-dark': isDarkTheme, 'svgMinus': !isDarkTheme}"></button> I also tried ...
user9417455's user avatar
0 votes
1 answer
128 views

In mobile, when inserted pin number, and then toggle show/hide then numeric key pad also changed to alphanumeric keypad. I required, when I toggle show/hide button it should be only display numeric ...
Nitin Sonwane's user avatar
0 votes
1 answer
46 views

Let's say I am using a custom directive named my-form-data: <my-form-data info='infoObj1' template="ssc.html"/> <my-form-data info='infoObj2' template="college.html"/> ...
p zankat's user avatar
  • 135
0 votes
2 answers
745 views

This is an image what exactly, i am facing the problem "type 'string null' is not assignable to type 'string'. typescript"
Sanket Wankhede's user avatar
0 votes
1 answer
308 views

I'd like to edit my checkbox so I get a or an input with type=button instead. I have for now, properly working : <label>Afficher</label> <input type="checkbox" ng-model="...
user9417455's user avatar
0 votes
2 answers
221 views

I'm fixing a bug on some legacy Angular 1.5 code. I have a template like this <div id="container" ng-if="ctrl.show_container"> <div id="child"></div> &...
user2183384's user avatar
0 votes
1 answer
107k views

I'm trying to implement a Refresh button for fetching latest search results from an external index. When I click on the Refresh button the icon is supposed to spin. My plan was to have a scope ...
cmgchess's user avatar
  • 10.3k
1 vote
1 answer
106k views

I have a button for which I have set ng-click="refresh()". The console logs before the timeout function logs correctly but the console log inside the $timeout block and after the block doesn'...
cmgchess's user avatar
  • 10.3k
0 votes
1 answer
106k views

I have a directive and it works fine in a way such that when I type something the search() scope function inside my directive fires and sets $scope.query with the input text. here is the directive ...
cmgchess's user avatar
  • 10.3k
1 vote
1 answer
61k views

I'm trying to render a directive whenever I get the search results back. My plan was to keep a scope variable algoliaSearch initially false and whenever I get back search results I change it to true. ...
cmgchess's user avatar
  • 10.3k
0 votes
0 answers
268 views

Hi I have created a angularjs+webix project wherein I will be adding CRUD operations. I have a app.js file where I put the routing: var app = angular.module('app', [ "webix", "ui....
Preksha Sharma's user avatar
-1 votes
1 answer
20 views

I have a little problem. The API data from the code below appears normally on the console, it returns an array with the data, but I can't return them to use them in the front-end. PS: that "name ...
Victor Macedo's user avatar
0 votes
1 answer
101 views

I have this scope function where it has a cost and a formatted value in data. That cost and formatted value are coming from an API. The formatted value can be in a different currency not limited to ...
stellainlucem's user avatar
0 votes
1 answer
38 views

I try to add a $watch to check if the form is valid or not. // testCtrl.html .... <div class="row" ng-form="testCtrl.testForm"> ... ...
Milena's user avatar
  • 996
0 votes
1 answer
688 views

I have developing some code in Angular JS and i need to disable radio button based on previous selection or change in text box in JS controller: PPCO.cusGender = [ { id : '1', key : 'Male', value : '...
sandeep's user avatar
  • 25
0 votes
1 answer
542 views

I am trying to test below code with Jest framework and AngularJS 1.8. $(".classA").timepicker({ showButtonPanel: true, timeFormat: "hh:mm", onClose: function () {...
prem30488's user avatar
  • 2,856
-1 votes
1 answer
25 views

I need to create a method to compone a url, So in my class I do this: createLink take un id and return the url: console.log("before the method"); console.log($scope.createLink ) $scope....
Picco's user avatar
  • 461
0 votes
0 answers
19 views

I need to create an url on icon to download some files. In my controller I do this $scope.download=download; function download(id){ console.log("Parameters "+id); return "......"+...
Polly's user avatar
  • 667
0 votes
1 answer
98 views

I need to click on icon and With some api I need to download a file. So I do in my html: <td> <a title="download" ng-show="file.name" ...
Postilla's user avatar
  • 161
0 votes
0 answers
66 views

I copied a small project from a course and trying to make it run, but apparently something is wrong with the routing or loading the .js files. The controllers and views are in place, i already check ...
Ariel Spais's user avatar
0 votes
2 answers
207 views

I'm trying to return a value to my $scope depending on if the checkbox is checked in angular JS but cannot seem to do so. Is there a way to get it to work? HTML: <div class=" specialClause ...
Deji James's user avatar
1 vote
1 answer
200 views

i need to put this code line (angularJS) in angular 2+ , how can i do this? I already do some searchs but this line is confusing me. scope.variable.value = event.color.toHex() Old Code: function ...
Hugo Silva's user avatar
0 votes
1 answer
232 views

How to use a string as a variable within the scope. Heres my code: HTML (one of many divs like this where type1 can be type2, type3, and so on): <div style="color:red;font-size:11px;">{...
juliebee's user avatar
0 votes
1 answer
42 views

I'm trying to make a button that could store the data to the localStorage. After storing the data, I want to get the data without refreshing/reloading the page The way I use to fix this case is, I put ...
Naufal's user avatar
  • 25
0 votes
1 answer
110 views

I have a form. It contains Name , quantity & price . I want to get input from form and store in Angularjs Objects. Then i have to output to View the whole array of angular objects. I tried with ...
Jaykumar's user avatar
  • 443
1 vote
1 answer
327 views

I have a select tag like below <select id="market-watch-sectors-select" name="market-watch-sectors-select" style="height: 30px;" class="tp-w-300 tp-ma-rl-10 ...
Saeed Zali's user avatar
1 vote
1 answer
36 views

Function on parent markAchievement() { console.log("Achievement marked") } Binding on the parent's HTML <mark-goal-button clickEvent="$ctrl.markAchievement()"></mark-...
jjnrmason's user avatar
  • 311
0 votes
1 answer
867 views

Hy, I have a variable bound to my scope, $scope.isSuccess = { invalidPhone : false } And I am using a span to display a message when the variable gets true ... <form name = "myForm&...
Ishmeet Singh's user avatar
1 vote
1 answer
35 views

I am trying to have a variable string, and access the matching $scope.field but it is undefined and not returning what I am expecting. What am I doing wrong, or is this not possible? $scope....
Suzy's user avatar
  • 261
0 votes
1 answer
78 views

I am developing a web application using AngularJS. I have a problem with the $scope object. My application is made up of many HTML pages and there is one where I use a multitude of different <form&...
wishyouwerehere's user avatar
0 votes
1 answer
104 views

Here is HTML with internal script <html> <body ng-controller="test"> <span> {{data.name}} </span> <input ng-model="data.name"> ...
Rohit Hushare's user avatar
2 votes
1 answer
597 views

I have a simple scenario with a formController which has child controls (input and text area). When I use a deep watcher (with objectEquality equals true) to check changes in the whole form, I'm ...
Jdarias's user avatar
  • 41
0 votes
1 answer
214 views

Trying to get a simple binding going with a html select and a scope variable but the select is not populating with the right value. <select ng-model="noOfReps" name="reps" id=&...
p0tta's user avatar
  • 1,691
0 votes
1 answer
119 views

Binding values with $scope.minutes = 1 to ng-bind="minutes" not working when I add scope: {finishcallback: "&"}, to my directive. I'm trying to implement a countdown timer ...
Yusuf Duyar's user avatar
0 votes
2 answers
260 views

I am working on a legacy AngularJS project. The code is too complicated/large to show here. But I have noticed that functions that are called when the digest changes are getting called hundreds of ...
John Gilmer's user avatar
-1 votes
1 answer
126 views

<div class="form-group"> Name <input type="text" class="form-control" placeholder="item" ng-model="shoppingItem.itemName&...
Android Coders's user avatar
-1 votes
1 answer
336 views

How to disable the pinning in UI Grid for AngularJs?? Even after setting enablePinning:false or enableGridMenu: false It is not work app.js file: var app = angular.module('app', ['ngTouch', 'ui.grid',...
Satish Hawalppagol's user avatar
1 vote
1 answer
116 views

I am attempting to create an AngularJS directive with a custom validator so that I can show error messages based on the validator. However, I am running into an error because it seems that the ...
ManofManyTigers's user avatar

1
2 3 4 5
179