Advertisement
Guest User

Untitled

a guest
Dec 8th, 2016
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // an example of a model in ES6
  2.  
  3. class User {
  4.    
  5.     constructor() {
  6.         this.username = "";
  7.         this.password = "";
  8.         this.email = "";
  9.     }
  10.  
  11.     save() {
  12.         // some code would go here that sends an AJAX request to the backend (so that the backend can update it in the database).
  13.     }
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement