value: function link(scope, element, attrs, controller, transcludeFn) {
      var name = this.getUiViewName(attrs, element.inheritedData('$uiView'));
      var locals = name && this.$state.$current && this.$state.$current.locals[name];
      if (locals) {
        var viewStateName = locals.$$state.self.name;