Skip to content
This repository has been archived by the owner on Dec 3, 2021. It is now read-only.

Disabled with bind value #78

Open
zauker opened this issue Oct 7, 2015 · 7 comments
Open

Disabled with bind value #78

zauker opened this issue Oct 7, 2015 · 7 comments

Comments

@zauker
Copy link

zauker commented Oct 7, 2015

I need to disable or enable dynamically the toggle switch i tried to use the disabled attribute but it seems that is not working well.

@cgarvis
Copy link
Owner

cgarvis commented Oct 7, 2015

Try ng-disabled

On Wed, Oct 7, 2015 at 11:04 AM, Michele Menciassi
notifications@github.com wrote:

I need to disable or enable dynamically the toggle switch i tried to use the disabled attribute but it seems that is not working well.


Reply to this email directly or view it on GitHub:
#78

@zauker
Copy link
Author

zauker commented Oct 8, 2015

I tried to use ng-disabled attribute but without success.
This is the plunker example that i made, i did some errors?

http://plnkr.co/edit/9kHn7zRgppvfMCk3j4Wa?p=preview

Any help is appreciated.

@Sheeryada
Copy link

+1

2 similar comments
@mnegahi
Copy link

mnegahi commented Nov 25, 2015

+1

@Grant-Lay
Copy link

+1

@marcusvezz
Copy link

It depends on the binding of the directive scope field "disabled" setted to "@".
Set the binding to "=" and enjoy.

@segux
Copy link

segux commented Dec 20, 2016

+1 @marcusvezz . I just did a mod with '=' bind on disabled attribute.

toggleSwitch directive scope

scope: { disabled: '=', onLabel: '@', offLabel: '@', knobLabel: '@' },

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants