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.
The following pattern is marked as an error in the editor but is not one: <span ng-repeat="(key, val) in stuff"> // <--- This is legal with angular {{key}}: {{val}} </span> function Items($scope) { $scope.stuff = { hello : true, foo : 'bar'}; }
Tim how does look your whole page? Is there the controller defined somewhere in the page?
Assigning to me.
Html looks like this; the data is JSON loaded from the server: <div class="span5 definitions" ng-show="definitions"> <h4>Definitions</h4> <div ng-repeat="item in definitions"> <a href="#" ng-click="setWord(item)" class="defname">{{item.word | capitalize}}</a> — <ol style="display:inline"> <span ng-repeat="(id, def) in item.definitions| lastModified"> <i ng-show="item.definitions">{{id + 1}}.</i> {{def.def}} </span> </ol> </div> </div>
Fixed in web-main http://hg.netbeans.org/web-main/rev/f0bf2810e063 So Tim, do you use configuration file for setting the controller?
There are several related Javascript files that compose together to create the controller - probably more stuff than you want me to attach here - since it's an angular application composed from several modules. The code that goes and gets the data is fairly simple: $http.get(urls.path('recent?count=100')).success(function(recent) { $scope.recent = recent; startListening() }); (urls is another angular module). It is loaded from the root path of the web server: <script src="/scripts/main.js"></script>
Integrated into 'main-golden', will be available in build *201305302301* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/f0bf2810e063 User: Petr Pisl <ppisl@netbeans.org> Log: #230223 - AngularJS support marks hash iteration as an error