Date post: | 16-Apr-2017 |
Category: |
Technology |
Upload: | webcat |
View: | 1,864 times |
Download: | 0 times |
Datos de Contacto
Web: http://mRubino.netBlog: http://geeks.ms/blogs/mRubinoTwitter : @Marc_RubinoLinkedin: http://linkedin.com/in/mRubino
¿Qué es?
• 100% JavaScript• Open Source• 40 Kb - Minimizado• Cross-Browser• Sin dependencias• Web con ejemplos y documentación
public class Cliente{ public int Id { get; set; } public string Logo { get; set; } public string Nombre { get; set; } public string Telf { get; set; } public string Contacto { get; set; } public Direccion Direccion { get; set; }}
function ViewModel () { this.Nombre = ko.observable("Marc"); this.Apellidos = ko.observable("Rubiño"); this.NonbreCompleto = ko.computed({ read: function () { return this.Nombre() + this.Apellidos(); }, write: function (nombre, apellido) { this.Nombre(nombre); this.Apellidos(apellido); } }); }
var viewModel = new ViewModel (); ko.applyBindings(viewModel);