This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 236042 - The ng:class is translated in wrong way
Summary: The ng:class is translated in wrong way
Status: RESOLVED FIXED
Alias: None
Product: web
Classification: Unclassified
Component: AngularJS (show other bugs)
Version: 7.4
Hardware: PC Linux
: P3 normal (vote)
Assignee: Petr Pisl
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-09-16 20:25 UTC by Petr Pisl
Modified: 2014-01-29 02:53 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Petr Pisl 2013-09-16 20:25:32 UTC
Have a code <input type="number" ng-model="servo.np" value="{{servo.np}}" min="{{servo.min}}" max="{{servo.max}}" ng-change="change(servo.id, servo.np)" 
                                       ng:class="{true:'servoNewPosChanged', false:'servoNewPosUnchanged'}[servo.np != servo.cp]"/>

 and this line is translated to the virtual source:

'servoNewPosUnchanged'}[servo.np != servo.cp];

which is wrong.
Comment 1 Petr Pisl 2014-01-28 13:32:24 UTC
Fixed in web-main
Comment 2 Quality Engineering 2014-01-29 02:53:33 UTC
Integrated into 'main-silver', will be available in build *201401290001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/fa6345e47121
User: Petr Pisl <ppisl@netbeans.org>
Log: #236042 - The ng:class is translated in wrong way