 .controller("AppCtrl", [
   "$scope"
   "$location"
-  "$resource"
-  "$rootScope"
+  "$log"
 
-($scope, $location, $resource, $rootScope) ->
+($scope, $location, $log) ->
+  unless $scope.$$phase?
+    $scope.$apply()
 
   # Uses the url to determine if the selected
   # menu item should have the class active.

.config([
  "$routeProvider"
  "$locationProvider"

($routeProvider, $locationProvider, config) ->

  $routeProvider



  # Without server side support html5 must be disabled.
  $locationProvider.html5Mode(false)

  $interpolateProvider.startSymbol "[["
  $interpolateProvider.endSymbol "]]"

  return
])


