-
Notifications
You must be signed in to change notification settings - Fork 27.4k
Dynamic option can hold empty value now so you don't have to initially p... #11512
Conversation
…y put it inside select (issue angular#11470)
Thanks for your pull request. It looks like this may be your first contribution to a Google open source project, in which case you'll need to sign a Contributor License Agreement (CLA). 📝 Please visit https://cla.developers.google.com/ to sign. Once you've signed, please reply here (e.g.
|
I signed it! |
CLAs look good, thanks! |
@slavede - thanks for this PR. It looks good for the scenario of adding in a dynamic empty element. Isn't it great when a fix can be so simple. I am very pleased that you have added a nice unit test and signed the CLA. In the future you can also follow our git commit message guidelines to make your PRs even better! I have two concerns that we need to resolve:
|
Sorry, I was/am kinda busy this week. Let me think about this over the weekend and come up with some suggestion. Also, can you point me to git commit message guidelines? |
Great! Here is the link you need https://github.com/angular/angular.js/blob/master/CONTRIBUTING.md#commit |
Proposed fix for 2:
|
@petebacondarwin what do you think? |
@slavede thanks for this. I tweaked the tests, added the bit about removing the empty option and then squashed the commits. |
The select directive supports provision of an "empty" element that is used if the value of the select is undefined. This fix ensures that this empty option can be provided dynamically after the initial compilation has completed. Closes angular#11470 Closes angular#11512
...ut it inside select (issue #11470)