Skip to content

Comments

Update angular-directive-percentage.js#5

Open
thomaswdean wants to merge 1 commit intodkhunt27:masterfrom
thomaswdean:patch-1
Open

Update angular-directive-percentage.js#5
thomaswdean wants to merge 1 commit intodkhunt27:masterfrom
thomaswdean:patch-1

Conversation

@thomaswdean
Copy link

I removed the check to see if the controller is valid in formatViewDataIntoModelData as this is the newly entered user value and we are about to check it's validity and it was interfering with the required directive. Also had a issue with multiple instances of the directive on the same page. I tried an isolate scope but it was still pulling in min and max values from the wrong element. I moved all of the logic into the link method so that each element could store it's own min, max variable values. It seems to be performing as desired now.

I removed the check valid check in formatViewDataIntoModelData as this is the new value and we are about to check it's validity and it was interfering with the required directive. Also had a issue with multiple instances of the directive on the same page. I tried an isolate scope but it was still pulling in min and max values from the wrong element. I moved all of the logic into the link method so that each element could store it's own min, max variable values. It seems to be performing as desired now.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant