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 231924 - It would be nice to detect elements of maps in the model
Summary: It would be nice to detect elements of maps in the model
Status: NEW
Alias: None
Product: web
Classification: Unclassified
Component: AngularJS (show other bugs)
Version: 7.4
Hardware: All All
: P2 normal with 1 vote (vote)
Assignee: Petr Pisl
URL:
Keywords:
Depends on:
Blocks: 234990
  Show dependency tree
 
Reported: 2013-06-27 11:49 UTC by Petr Jiricka
Modified: 2015-09-09 11:39 UTC (History)
1 user (show)

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Petr Jiricka 2013-06-27 11:49:34 UTC
1. Clone this project from GitHub: https://github.com/tastejs/todomvc
2. Import directory architecture-examples/angularjs using HTML Project from
Existing Sources wizard
3. Open js/controllers/todoCtrl.js and in the addTodo function, change the call of todos.push to:
todos.push({
    title: newTodo,
    completed: false,
    importance: "Medium"
});
4. In index.html, place caret somewhere after todo. (e.g. on line 25) and press Ctrl+space

=> If would be nice if code completion offered 'importance'.


I can imagine this could be solved by sniffing the runtime, see discussion in issue 231870. Or, could it be solved just by analyzing the code?