pages
Version:
AngularJS / Node.js sidekick.
26 lines (17 loc) • 535 B
text/coffeescript
app = angular.module 'APPNAME', MODULES
config = ($routeProvider, $httpProvider, pagesConstants) ->
Enable CORS.
$httpProvider.defaults.useXDomain = true;
delete $httpProvider.defaults.headers.common['X-Requested-With']
Default route.
$routeProvider.otherwise redirectTo: pagesConstants.defaultPath
config.$inject = [
'$routeProvider'
'$httpProvider'
'pagesConstants'
]
app.config config
app.run [
'appSetup',
(appSetup) -> appSetup.initApp()
]