Advertisement
Guest User

Untitled

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