Replaced "retreive" with "retrieve".
This commit is contained in:
@@ -23,7 +23,7 @@ Here's an example of the usage in an Umbraco resource. This example is the metho
|
||||
|
||||
return umbRequestHelper.resourcePromise(
|
||||
$http.get(getTreeMenuUrl(node)),
|
||||
"Failed to retreive data for a node's menu " + node.id);
|
||||
"Failed to retrieve data for a node's menu " + node.id);
|
||||
}
|
||||
|
||||
HTTP error handling is performed automatically inside of the `umbRequestHelper.resourcePromise` and inside of Umbraco's response interceptors.
|
||||
@@ -105,4 +105,4 @@ The good news is, this is very simple to do, example:
|
||||
});
|
||||
}
|
||||
|
||||
The next thing that is important to note is that **you don't have to do anything** if you don't want to do anything with the error but still want the error bubbled up to your promises handlers. So for example, if you are expecting the handler of this promise to handle the error and display something in the UI, just leave out the function(err) callback which would look exactly the same as the example for 'Transforming result data'
|
||||
The next thing that is important to note is that **you don't have to do anything** if you don't want to do anything with the error but still want the error bubbled up to your promises handlers. So for example, if you are expecting the handler of this promise to handle the error and display something in the UI, just leave out the function(err) callback which would look exactly the same as the example for 'Transforming result data'
|
||||
|
||||
Reference in New Issue
Block a user