Answer the question
In order to leave comments, you need to log in
How to have common object interfaces between angular and nodejs?
Here it is conditionally, there is a front on the angular, a backend on the node.
On a mangodb db node, I use mongoose for ease of use.
I am creating a new schema interface to interact with the db.
LeadSchema = new mongoose.Schema({
name: '',
address: ''
});
Lead: {
name: '',
address: ''
}
Answer the question
In order to leave comments, you need to log in
Take out these objects as separate entities and import them.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question