milosev.com
  • Home
    • List all categories
    • Sitemap
  • Downloads
    • WebSphere
    • Hitachi902
    • Hospital
    • Kryptonite
    • OCR
    • APK
  • About me
    • Gallery
      • Italy2022
      • Côte d'Azur 2024
    • Curriculum vitae
      • Resume
      • Lebenslauf
    • Social networks
      • Facebook
      • Twitter
      • LinkedIn
      • Xing
      • GitHub
      • Google Maps
      • Sports tracker
    • Adventures planning
  1. You are here:  
  2. Home
  3. JavaScript
  4. Knockout

Few examples

Details
Written by: Stanko Milosev
Category: Knockout
Published: 20 August 2013
Last Updated: 01 October 2013
Hits: 3862

I have made few of my examples like:

selectBox

onClick

onChange

htmlBind

template

addSelectBox

addSelectBoxWthOutFunction

Important thing is line:

ko.applyBindings(new ViewModel());

Where ViewModel must be like:

var ViewModel = function () {
	this.myClick = function () {
		alert('Yo! This is a test!');
	}
};

Page 6 of 6

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6