Answer the question
In order to leave comments, you need to log in
Why don't you explain again about MEAN?
Question 1
Storing data in MongoDB
We have a Product collection consisting of data from several other collections:
Conditions -> Product <- Colors
Each document in the Conditions and Colors collections is just a name, but in different languages
{
"_id" : "557e90f5096e2cb81d59fc09",
"name" : {
"ru" : "Старый",
"en" : "Old"
},
"__v" : 0
},
{ {"name" : { "ru":"Старый, "en": "old"}, {"name" : {"ru": "новый", "en":"new"}}
, but there is nothing permanent and sometimes the composition of the Product will still need to be changed in the admin panel, depending on changes in other collections, i.e., if I want to change "old" to "Not quite old" in Conditions - I want it to change and in Product. How to implement it? Store in product and ._id from Conditions and query "When we change name in Conditions, then we search through all collections where there is the same ._id and change it to a new one"? <div ng-repeat="language in languages track by $index">
<input ng-model="name.{{language}}">
</div>
?
Answer the question
In order to leave comments, you need to log in
If I understood correctly what you need, then you would take the angular-translate library and just store the translations separately without changing the meaning of all words in all collections. And then it comes out very cold.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question