restaurants.js represents an Angular service for our application that we'll use for the restaurants. We know that there are two common uses of services—organizing code and sharing code across applications. Therefore, we have created a restaurants service that will be used among different modules such as search, list, details, and so on.
The following section initializes the restaurants service module and loads the required dependencies:
angular.module('otrsApp.restaurants', [ 'ui.router', 'ui.bootstrap', 'ngStorage', 'ngResource' ])
In the configuration, we are defining the routes and state of the otrsApp.restaurants module using ...