If I declare 1 constant like this:
app.constant('appHelper', {
first: 'Firstname',
last: 'Lastname'
});
and then try to use it in a second constant like this:
app.constant('appHelper2', {
fullName: appHelper.first + '' + appHelper.last
});
doesn't work. Error: appHelper is undefined.
Any ideas how can I do that ?