-
-
Notifications
You must be signed in to change notification settings - Fork 401
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How do I: create fields that depends on each other #45
Comments
I don't know if this is the right way to do it, I did accomplish it, and this is what I did: <span editable-select="select1" e-class="select-field" onshow="showingSelect1(this)....> On my controller the showingSelect method did the following: $scope.showingSelect = function (selectDirective) { selectDirective.$watch('$data', function () { |
@schadedk you solution works but I think the more right way not to watch hidden |
Thanks! Your solution is much nicer, and is just what I was looking for. Thank you for your help! |
You are welcome :) |
Hi @vitalets , I am working on dates with the same technique. How can I achieve the same if I have multiple fields (ng-repeat) ? Scenario: I have month and day fields. Number of days in a month is displayed when the month is selected.. I have months and days inside ng-repeat. Regards, |
@pavi95 can you provide a jsfiddle/plunkr showing your issue? |
Yeah, please do so...
…On Mon, 17 Apr 2017, 18:48 ckosloski, ***@***.***> wrote:
@pavi95 <https://github.com/pavi95> can you provide a jsfiddle/plunkr
showing your issue?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#45 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABT8aqZTQ5VTh2NBpG8jBhZjBBjvFuhmks5rw2bBgaJpZM4BM8i_>
.
|
@ckosloski @ajjublr Thanks for your valuable time man. I found this fiddle.. It helps me out.. https://jsfiddle.net/32kzsvve/1/ it may help others |
Hi,
I have two select local fields, were the content of one of them, should depend on the value of the other.
Eg: select 1: "Letters, "Digits"
Select 2: should contain "A","B","C" when select 1 is "Letters"
Select 2: should contain "1,"2","3" when select 1 is "Digits".
Is that possible to accomplish?
The text was updated successfully, but these errors were encountered: