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

  transclude: true
  scope:
    bpNavbarTitle: '@'
  compile: (elem, attrs, transcludeFn) ->

    getTitleFromState = (state) ->
      state.data?.title or
      state.name.charAt(0).toUpperCase() + state.name.slice(1)

    ios = if bpConfig.platform is 'android' then no else yes

    (scope, element, attrs) ->
      state = $state.current



        if state.data?.up? and not attrs.bpNavbarNoUp?
          upState = $state.get state.data.up
          upTitle = scope.getTitleFromState upState
          $up = $compile("
            <bp-action class='bp-action-up' bp-sref='#{upState.name}'>#{
              upTitle
