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 246948

Summary: Exclude Angular directives from Knockout component's list of attributes
Product: web Reporter: Vladimir Riha <vriha>
Component: KnockoutAssignee: Petr Pisl <ppisl>
Status: NEW ---    
Severity: normal CC: phejl
Priority: P3    
Version: 8.1   
Hardware: PC   
OS: Linux   
Issue Type: DEFECT Exception Reporter:

Description Vladimir Riha 2014-09-09 14:11:53 UTC
If you have a custom component like

ko.components.register('message-editor', {
    viewModel: function(params) {
        this.text = ko.observable(params.initialText || '');
    },
    template: 'Message: <input data-bind="value: text" /> '
            + '(length: <span data-bind="text: text().length"></span>)'
});
 
ko.applyBindings();


and then in HTML file invoke cc at "|"

<message-editor | ></message-editor>

it offers also AngularJS directives, would it be possible to remove them from the list?

Thank you



Product Version: NetBeans IDE Dev (Build web-main-1251-on-20140909)
Java: 1.8.0_20; Java HotSpot(TM) Client VM 25.20-b23
Runtime: Java(TM) SE Runtime Environment 1.8.0_20-b26
System: Linux version 3.13.0-32-generic running on i386; UTF-8; en_US (nb)