0

I have implemented functionality in Angular js using Umbraco entiryResource, Here is my code sample.

entityResource.getById(value, 'Member')
 .then(function (ent) {
                        value = ent.name;                                          
                    });
return value;

The problem is "return value;" statement executes before the line inside ".then()". I just want to wait the execution to complete the ".then()" and then move to next step.

How to achieve this?

Developer
  • 46
  • 5

0 Answers0