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 229691 - support for ng-repeat
Summary: support for ng-repeat
Status: NEW
Alias: None
Product: web
Classification: Unclassified
Component: AngularJS (show other bugs)
Version: 7.4
Hardware: PC Mac OS X
: P1 normal with 2 votes (vote)
Assignee: Petr Pisl
Depends on:
Reported: 2013-05-14 06:42 UTC by Marek Fukala
Modified: 2015-09-09 11:38 UTC (History)
1 user (show)

See Also:
Exception Reporter:


Note You need to log in before you can comment on or make changes to this bug.
Description Marek Fukala 2013-05-14 06:42:52 UTC
Right now the JS code completion for the pipe position in the example below neither offers the item element nor its sub-properties item.|

I'm not sure how hard is this to implement, but would be extremely useful.

<!DOCTYPE html>
<html ng-app>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <script src="angular.js"></script>
            function list($scope) {
                $scope.items = ['maty', 'tobi'];
        <div ng-controller="list">
                <li ng-repeat="item in items">{{|}}</li>
Comment 1 Marek Fukala 2013-05-14 06:59:24 UTC
I've fixed the html.angular module os the ng-repeat content is parsed as javascript, which seems to work quite well even for the more complicated cases like ng-repeat="(name, age) in {'adam':10, 'amalie':12}", but there's a JS error from the virtual source on 'ng-repeat="item in items" -- missing semicolon'. Can you Petre take a look at that problem as well?
Comment 2 Petr Pisl 2013-05-14 07:16:01 UTC
Sure, I look at this.