code: function getUiViewName(attrs, inherited) {
          var name = attrs.uiView || attrs.name || '';
          return name.indexOf('@') >= 0 ? name : (name + '@' + (inherited ? inherited.state.name : ''));
      }
docs: Shared ui-view code for both directives:
  Given attributes and inherited $uiView data, return the view's name