I have a text box that's "dependant-mandatory" on a checkbox setting also on the web page which I only want fired on form submit.
I assume the best way to implement this validation is using a directive and have found a neat way using $scope.broadcast to fire all validations on submit but can't for the life of me find a way to pass in the checkbox setting check state as a parameter to the function setup in "link" I need to decide if the text box is valid or not. I could get the value I suppose by calling the element by name within the directive but seems a horrible way of doing it to me, any ideas? , maybe I'm completely missing the point? thanks in advance and hopefully I've explained my problem well enough harry -- You received this message because you are subscribed to the Google Groups "AngularJS" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/angular. For more options, visit https://groups.google.com/d/optout.
