Knockout intellisense tools for Asp.net

Posted by Unknown

Knockout intellisense tools for Asp.net:


Now knockout intellisense tools are avialble for the Asp.net also with web extension tools(WET)
in WET tools 1.2 RC.
You can download latest WET Tools 1.2 RC  from these link

we have a very exited feature in 1.2 tools like declarative javascript from MVVM system for client side binding.see for more details for knockout.js http://knockoutjs.com/ or http://learn.knockoutjs.com/ 

These knock out intellisence tools allows you to code knockout very quickly and accurate and fully client side custom bindings supportble.

With the installation of WET tools 1.2RC we can get 
  • loading knockout-n.n.n.js or knockout.n.n.n.debug.js
  • defining viewmodal in java script as objcet or function
  • calling KO.applybindings(viewmodal) after the page loaded
Defining the view modal:
Declare the data structure you want to use as a JavaScript object:
    <script>
      var viewModel = {
        fieldOne: "string",
        fieldTwo: 12345,
        fieldThree: null,
        fieldFour: ko.observable("two way data-binding"),
        fieldFive: ko.observableArray([1,2,3])
      };
    </script>
Applying Bindings:
ko.applyBindings(viewModel);

we can get intellisence like bellow


Labels:

Post a Comment

 
test