         role: 'navigation'
 
       transcludeFn scope, (clone) ->
-
         unless attrs.bpNavbarTitle?
-          attrs.bpNavbarTitle = getTitleFromState state
+          attrs.bpNavbarTitle = scope.getTitleFromState state
 
         $title = $compile("
           <bp-navbar-title role='heading'>{{


            unless scope.navbarTitle then $timeout ->
              difference = $scndAction.outerWidth() - $frstAction.outerWidth()

              if difference isnt 0 and $frstAction.length
                $spacer = angular.element("
                  <div style='
                    -webkit-box-flex:10;
                    max-width:#{Math.abs(difference)}px
                  '>")
                if difference > 0
                  $spacer.insertBefore $title
                else if difference < 0
                  $spacer.insertAfter $title
            , 0

          else


              element.append $up, $title, $frstAction, $scndAction
            else
              element.append $icon, $title, $frstAction, $scndAction

        # else
        # TODO: implement Toolbar/Action overflow
