Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // an example of a model in TypeScript
- class User {
- username: string;
- password: string;
- email: string;
- save() {
- // some code would go here that sends an AJAX request to the backend (so that the backend can update it in the database).
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement