Skip to content

Instantly share code, notes, and snippets.

@camwhite
Created November 8, 2015 21:28
Show Gist options
  • Save camwhite/06f1f59c9a174db216e1 to your computer and use it in GitHub Desktop.
Save camwhite/06f1f59c9a174db216e1 to your computer and use it in GitHub Desktop.
'use strict'
angular.module 'meshApp'
.config ($stateProvider) ->
$stateProvider.state 'dash',
url: '/dash'
templateUrl: 'app/dash/dash.html'
controller: 'DashCtrl'
controllerAs: 'dash'
authenticate: true
resolve:
user: (Api) ->
Api.get 'users/me'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment