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 267815 - Netcat - parent failed
Summary: Netcat - parent failed
Status: NEW
Alias: None
Product: web
Classification: Unclassified
Component: Knockout (show other bugs)
Version: 8.2
Hardware: PC Windows 10 x64
: P3 normal (vote)
Assignee: Petr Hejl
Depends on:
Reported: 2016-09-01 00:02 UTC by amobilia
Modified: 2016-09-01 00:02 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Note You need to log in before you can comment on or make changes to this bug.
Description amobilia 2016-09-01 00:02:39 UTC
Testcase [Web Client] KnockoutJS support -> Parent

Have JS file (source: KnockoutJS documentation)
function AppViewModel() {
    var self = this;
    self.people = ko.observableArray([
        { name: 'Bert' },
        { name: 'Charles' },
        { name: 'Denise' }
    self.addPerson = function() {
        self.people.push({ name: "New at " + new Date() });
    self.removePerson = function() {
ko.applyBindings(new AppViewModel());
and HTML file
<ul data-bind="foreach: people">
        Name at position <span data-bind="text: $index"> </span>:
        <span data-bind="text: name"> </span>
        <a href="#" data-bind="click: $parent.">Remove</a>
<button data-bind="click: addPerson">Add</button>


In HTML file, invoke cc after "$parent." 

Expected result:
people, addPerson() and removePerson() are offered. Try it again, but replace $parent with $parents[0] and then with $root

The required attributes aren't purposed by auto complete.
A ctrl + click on "people" (line 2) correctly open the js file.