I'm learning Node.js along with Angular (a MEAN project) via Udemy, where I've to create identical model for both back-end and front-end(angular2). It makes me wonder if there's a way to create a model that somehow will apply for both sides?
If I need to change a class, then I have to make changes in both, which could have a possibility for missing out a thing or two in the long term.