Showing basic usage of resolve in Angularjs