daily pastebin goal
21%
SHARE
TWEET

Untitled

a guest Dec 11th, 2018 62 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var self = this;
  2.     self.firstName = ko.observable();
  3.     self.lastName = ko.observable();
  4.     self.fullName = ko.computed(function(){
  5.         return self.firstName + " " + self.lastName;
  6.     });
  7. };
  8.  
  9. var viewModel2 = function(){
  10.     var self = this;
  11.     self.premium = ko.observable();
  12. };
  13.  
  14. ko.applyBindings(new viewModel1(), document.getElementById("container1"));
  15. ko.applyBindings(new viewModel2(), document.getElementById("container2"));
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top