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 - ViewModel code template for Knockout (and thus also JET)
Summary: ViewModel code template for Knockout (and thus also JET)
Status: RESOLVED FIXED
Alias: None
Product: javascript
Classification: Unclassified
Component: OJET (show other bugs)
Version: 8.1
Hardware: PC Windows 7
: P2 normal (vote)
Assignee: Petr Pisl
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-12-16 12:54 UTC by Geertjan Wielenga
Modified: 2016-03-16 17:47 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 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)