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 257172

Summary: ViewModel code template for Knockout (and thus also JET)
Product: javascript Reporter: Geertjan Wielenga <geertjan>
Component: OJETAssignee: Petr Pisl <ppisl>
Status: RESOLVED FIXED    
Severity: normal CC: anebuzelsky
Priority: P2    
Version: 8.1   
Hardware: PC   
OS: Windows 7   
Issue Type: ENHANCEMENT Exception Reporter:

Description Geertjan Wielenga 2015-12-16 12:54:54 UTC
In the JavaScript editor, "vm" abbreviation should expand to:

function DemoViewModel() {
}
$(document).ready(
        function ()
        {
            ko.applyBindings(new DemoViewModel());
        }
);
Comment 1 Geertjan Wielenga 2015-12-16 12:55:28 UTC
Changing to enhancement, P2. Handy for anyone starting with Knockout or JET.
Comment 2 Petr Pisl 2016-02-10 12:31:36 UTC
Simple
Comment 3 Petr Pisl 2016-03-09 08:49:18 UTC
Added to the web-main trunk.
http://hg.netbeans.org/web-main/rev/087841e30d55
Comment 4 Quality Engineering 2016-03-10 02:01:05 UTC
Integrated into 'main-silver', will be available in build *201603100002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/087841e30d55
User: Petr Pisl <ppisl@netbeans.org>
Log: #257172 - ViewModel code template for Knockout (and thus also JET)