Exposing the current state name with ui router

this is how I do it JAVASCRIPT: var module = angular.module(‘yourModuleName’, [‘ui.router’]); module.run( [‘$rootScope’, ‘$state’, ‘$stateParams’, function ($rootScope, $state, $stateParams) { $rootScope.$state = $state; $rootScope.$stateParams = $stateParams; } ]); HTML: <pre id=”uiRouterInfo”> $state = {{$state.current.name}} $stateParams = {{$stateParams}} $state full url = {{ $state.$current.url.source }} </pre> EXAMPLE http://plnkr.co/edit/LGMZnj?p=preview

Correct use for angular-translate in controllers

Recommended: don’t translate in the controller, translate in your view I’d recommend to keep your controller free from translation logic and translate your strings directly inside your view like this: <h1>{{ ‘TITLE.HELLO_WORLD’ | translate }}</h1> Using the provided service Angular Translate provides the $translate service which you can use in your Controllers. An example usage … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)