kanjiroushi.controller('InfoPageController', function ($scope,$rootScope,$http,config,$routeParams,$q,crumbs,$route) { //language (should be on every controller) //watch from AppController if($routeParams.lg != undefined) $rootScope.lg = $routeParams.lg; else $rootScope.lg = $route.current.$$route.lg; crumbs.set($route.current.$$route.crumbs); if($route.current.$$route.title != undefined) $rootScope.title = 'Kanjiroushi: '+$route.current.$$route.title; })