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 236001 - AngularJS {{ object['property'] }} expressions are listed as errors in the editor.
Summary: AngularJS {{ object['property'] }} expressions are listed as errors in the ed...
Status: RESOLVED WORKSFORME
Alias: None
Product: web
Classification: Unclassified
Component: AngularJS (show other bugs)
Version: 7.4
Hardware: PC Windows 8
: P3 normal (vote)
Assignee: Marek Fukala
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-09-16 00:14 UTC by kennethjevans
Modified: 2013-09-17 21:43 UTC (History)
2 users (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 kennethjevans 2013-09-16 00:14:11 UTC
The line below "{{ myObject['alpha'] }}" gets highlighted in the editor as "Expected ] but found ;".  It is a valid AngularJS expression.  Could you guys please fix this issue?  It flags many files in my projects as having errors.

A test file is below.

BTW, I love Netbeans.  Thank you all for your hard work.  7.4 is coming along nicely.

<!DOCTYPE html>
<html data-ng-app="">
	<head>
		<title>Test Page</title>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<meta name="viewport" content="width=device-width">
		<script src="http://ajax.googleapis.com/ajax/libs/angularjs/1.2.0-rc.2/angular.js"></script>
	</head>
	<body>
		<div data-ng-init="myObject = {alpha: 1, bravo: 2, charlie: 3}">
			{{ myObject['alpha'] }}
		</div>
	</body>
</html>
Comment 1 Vladimir Riha 2013-09-16 07:07:07 UTC
Thank you for reporting, works fine in 7.4 RC1

Product Version: NetBeans IDE 7.4 RC1 (Build 201309112301)
Java: 1.7.0_40; Java HotSpot(TM) Client VM 24.0-b56
Runtime: Java(TM) SE Runtime Environment 1.7.0_40-b43
System: Linux version 3.2.0-48-generic-pae running on i386; UTF-8; en_US (nb)
Comment 2 kennethjevans 2013-09-16 18:08:47 UTC
I don't know why I thought the Beta was being patched.  My mistake.  I'll use the latest dev build from now on when filing.  Thanks for pointing it out to me.

May I just say the latest dev build is amazing.  Wow guys.  Seriously great stuff.