93 questions
0
votes
0
answers
60
views
How to resolve error "can't read properties native element"
I have developed disable and enable functionality in angular. When I click on enable I get the data and it's working fine but when I click on disable I am getting the error
"cannot read ...
0
votes
3
answers
156
views
AngularJS - ng-disabled is not disabling my element
I´m trying to hide an option if the condition exists, but the option is still there.
Here is my code:
<li role="presentation"><a role="menuitem" tabindex="-1" ng-...
1
vote
1
answer
186
views
Disable button with checkbox in nested ng-repeat angularjs
I wanna disable the button with the checkbox in nested angularjs ng-repeat. I mean to Disable button in the current array of ng-repeat. My code looks like the below example,
angular.module('test', ...
0
votes
1
answer
540
views
How to use custom directive in angularJs ng-disabled?
I have following directive defined.
limsApp.directive('isPermissionValid', ['Service', function(Service) {
return {
restrict: 'A',
scope: {
isPermissionValid: '='
...
0
votes
1
answer
610
views
Angularjs: How to disable decrement button in counter input if value=1?
I am building an app in which user have to addtocart using increment/decrement button. As value=0 i want decrement button to be disabled. I used ng-disabled as such:
<div class="plus-minus">
...
1
vote
1
answer
328
views
Disabling the Button for only a specific instance of ng-repeat
I have ng-repeat on a div that contains a button. Say the div repeats 5 times with 5 buttons. I want to disable the 2nd button when it is clicked. How can I disable the button at that index?
<div ...
0
votes
1
answer
68
views
ng-disabled with an expression prevents custom click handlers
I have a directive which basically binds a click event to the button, so after the button is clicked it runs (used a directive so i dont force others to change their ng-click expressions).
Anyway the ...
1
vote
1
answer
282
views
Is it possible to disable a button in angular js when there are any custom ng-message errors present in the form?
Is is possible to disable a button in a form, when there is any error message in the form other than built in errors such as 'required', 'min-length', such as validating a condition?
0
votes
1
answer
596
views
ng-disabled on inputs from ng-repeat loop
I'm displaying inputs basing on array like this
<div data-ng-repeat="n in langInput.values">
<input type="text"
id="auction_name_{{n.selected}}"
class="form-...
0
votes
1
answer
804
views
ng-disabled with index within ng-repeat angularjs
I want to disable button using ng-disabled within ng-repeat. In this case I want to make like button for every items.
I want to disable the button during http request until it return success result.
...
0
votes
1
answer
198
views
angularjs ng-disabled with MVC Model and angular scoped model
I want to use a combination of my angular model and MVC model to disable an anchor tag (Model.Technician is a bool):
<a href="#" title="" class="btn btn-default" ng-disabled="selectedTasksCount &...
0
votes
0
answers
255
views
Enable/disable a button if another one is clicked in AngularJS
I have the first group 3 buttons: line, spline and bar.
The second group: single, double and triple.
What I want to do it to make the second group buttons to be enabled or disabled depending on ...
-1
votes
1
answer
1k
views
ng-disable doesn't work within SVG element
I'm working on an angularjs directive where a circle element needs to be disabled once it has been clicked on once.
The ng-click event works as expected, but the ng-disable is not working. I can see ...
0
votes
1
answer
362
views
IE ng-disabled not working with "as" syntax
I have an issue with ng-disabled it works fine with chrome and firefox but the problem with IE 11
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8"&...
-2
votes
2
answers
1k
views
Using ng-disabled button is still disabled even if value in condition changes
I have a button:
<button ng-disabled="ctrl.myService.getData().someProperty ? '' : 'disabled'">
Click me!
</button>
When the application loads someProperty does not exist on ctrl....
1
vote
3
answers
1k
views
ng-disabled within angular directive
I have an angular directive:
angular.module("app").directive("myButtons", function () {
return {
restrict: "E",
scope: {
bdisabled: '='
},
templateUrl: ...
0
votes
1
answer
51
views
Disable input box until anchor link clicked
I'm trying to set the input text box of my app to disabled until a username is clicked from the right side. I've tried using ng-disabled on the input box, but can't set it to disabled until a link is ...
0
votes
2
answers
1k
views
disable the button after one click using ng-disabled
Below is the code for the ng-click, I want the click event only once and then disable the button. But, how to use ng-disabled for only button tag (without using input tag)?
Suggestion would be ...
17
votes
4
answers
69k
views
How to disable a button in ANGULARJS
i have angularJS 1.5.0-rc.2
I found on the internet that i can use the directive
data-ng-disabled="Expression"
But it won't disable a button.
What i tried :
<button data-ng-disabled="false">...
5
votes
3
answers
16k
views
How to disable md-select
I need to disable a md-select but I couln't find it in the Angular documentation.
This is my code:
<md-select ng-model="idSelectedMonth" placeholder="Month">
<md-option ng-repeat="...
2
votes
1
answer
2k
views
AngularJS set disable/enable buttons without using ng-disabled and ng-click on dynamically generated html
I'm having a problem how to solve to implement buttons refresh (enable/disable) without using ng-disabled and ng-click
I've send to my directive the following configuration (one or more buttons)
...
0
votes
1
answer
2k
views
ng-disabled button until input file is changed
I have a form and it includes an input file for uploading photos. What I want is to disable the button until input file has no value. I also have other validations that make the button disabled.
My ...
0
votes
1
answer
2k
views
angularjs dynamic add option field with disable previous selected option
Hi I am adding Dynamically form fields like this
<div ng-repeat="exam_student in exam_students">
<select
ng-model="exam_student.student_id"
options="students"
ng-options="...
0
votes
0
answers
594
views
Disable Submit button by clicking another button in AngularJS 1.3.15
I have 2 buttons - Delete and Submit. Submit button is disabled initially. I am trying to enable Submit button whenever the user clicks on Disable button. I am using AngularJS 1.3.15 for this project.
...
0
votes
5
answers
308
views
Disabling a button after a click event
I have this piece of HTML code
<html>
<head></head>
<body>
<div ng-init="controller.onInit()" style="divContainer">
<div class="divLoading" style="vertical-align:...