KnockoutJS Observables
home
Run
screen_rotation
fullscreen
cloud_download
<!DOCTYPE html> <head> <title>KnockoutJS Example</title> <script src="https://cdnjs.cloudflare.com/ajax/libs/knockout/3.3.0/knockout-min.js" type="text/javascript"></script> </head> <body> <div> <input type="text" data-bind="value: helloText"> <p>Hello Welcome to <span data-bind="text: helloText"><span></p> </div> <script> // data model content goes here var ViewModel = function() { this.helloText = ko.observable('Tutorialsplane.com'); }; // Activate Knockout.JS ko.applyBindings(new ViewModel()); </script> </body> </html>
<!DOCTYPE html> <head> <title>KnockoutJS Example</title> <script src="https://cdnjs.cloudflare.com/ajax/libs/knockout/3.3.0/knockout-min.js" type="text/javascript"></script> </head> <body> <div> <input type="text" data-bind="value: helloText"> <p>Hello Welcome to <span data-bind="text: helloText"><span></p> </div> <script> // data model content goes here var ViewModel = function() { this.helloText = ko.observable('Tutorialsplane.com'); }; // Activate Knockout.JS ko.applyBindings(new ViewModel()); </script> </body> </html>
Copyrights@tutorialsplane.com