Hi,

I am attempting to check a checkbox when a value is selected from a 
drop-down box located elsewhere on the form, the code I currently have 
worked fine in Angular 1.2 but seems to have broken when moving to 1.3. Any 
help would be greatly appreciated, code segments below:

<div data-dropdown="" data-ng-model="params.templateName"­ 
id="templateName" name="templateName" 
data-ng-change="params.generateValu­eLists = params.templateName ? 'true' : 
'false';" aria-haspopup="true" aria-expanded="false">
<div data-ng-if="!multiSelect" class="ng-scope">
<span class="item ng-binding" data-ng-bind="translateOptions ? 
(renderSelectedOption() | translate) : renderSelectedOption() || 
emptyText">None</span>
</div>
<span class="fdxicon-plain fdx-triangle-s" tabindex="-1"></span>­
<ul class="dropdown-menu">
<li data-ng-if="!multiSelect && !isRequired" class="ng-scope">
<a data-ng-click="selectOption(null)"­ 
data-ng-attr-id="{{itemIdPrefix}}Em­pty" data-ng-bind="emptyText" 
class="ng-binding" id="177_Empty">None</a>­
</li>
<li data-ng-repeat="option in getRemainingOptions() track by option.value" 
data-ng-class="{active: isSelected(option)}" class="ng-scope">
<a data-fdx-put-class="option.classNam­e" data-ng-class="{highlighted: 
dropDownMenuIndex === $index}" data-fdx-put="translateOptions ? 
(option.label | translate) : option.label" data-fdx-put-attrs="{id: 
itemIdPrefix + $index}" data-ng-click="selectOption(option)­" id="177_0" 
class="ng-binding">Value 1</a>
</li>
<li data-ng-repeat="option in getRemainingOptions() track by option.value" 
data-ng-class="{active: isSelected(option)}" class="ng-scope">
<a data-fdx-put-class="option.classNam­e" data-ng-class="{highlighted: 
dropDownMenuIndex === $index}" data-fdx-put="translateOptions ? 
(option.label | translate) : option.label" data-fdx-put-attrs="{id: 
itemIdPrefix + $index}" data-ng-click="selectOption(option)­" id="177_1" 
class="ng-binding">Value 2</a>
</li>
</ul>
</div>

<div class="col-sm-7 col-sm-offset-3 ng-scope" 
data-ng-init="params.generateValueL­ists='false'">
<div class="checkbox">
<label for="generateValueLists" class="disabled">
<input type="checkbox" data-ng-model="params.generateValue­Lists" 
id="generateValueLists" name="generateValueLists" 
data-fdx-disabled="!params.template­Name" 
data-ng-checked="params.templateNam­e" data-ng-true-value="true" 
data-ng-false-value="false" class="ng-pristine ng-untouched ng-valid" 
disabled="disabled">
<span>Generate value lists from the data</span>
</label>
</div>
</div>

Apologies if this isn't enough information, I've only just started using 
Angular and am trying to edit code created by someone who previously worked 
on the project. If you need further information I'd be happy to oblige.

Many thanks,
Nic

-- 
CONFIDENTIAL NOTICE: This e-mail transmission (and the attachments, if any, 
accompanying it) may contain confidential information. The information is 
intended only for the use of the intended recipient. If you are not the 
intended recipient, you are hereby notified that any forwarding, 
disclosure, copying, distribution, or the taking of any action in reliance 
on the contents of this information is strictly prohibited. Any 
unauthorized interception of this transmission is illegal under the law. If 
you have received this transmission in error, please promptly notify the 
sender by reply e-mail, and then destroy all copies of the transmission.

-- 
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.

Reply via email to