Say I have a component in the markup:
<lightning:select aura:id="mySelect" ......>
No value attribute is set as if it defaults to a value it does not set the value of the attribute to the default value (only sets the html element as selected) so that is useless and the value has to be set manually in the controller. This means one has to add an option like "Please select a value" to ensure the value gets set appropriately
Now, say I have a button that I want to be disabled if no value is selected yet:
<button disabeld="{!??????}" ....>
Is there a way to reference the select value within the markup itself?
I am trying to have the button be disabled if the select value is blank and enabled when something has been selected.
I know I can do it in the event of the select or via an additional attribute but I am trying to not add any ore attributes than needed. There is already too many just to get around bugs etc so they have loaded the markup already.
I basically am just curious if a component value can be referenced directly in the markup.