Giter Club home page Giter Club logo

Comments (4)

davidpfahler avatar davidpfahler commented on June 24, 2024

Can you post a jsfiddle or similar of the code you are using? I can not really picture the problem or the setup you have. Thanks.

from bradypodion.

Goltergaul avatar Goltergaul commented on June 24, 2024
$stateProvider
  .state('alerts', {
    url: '/',
    templateUrl: 'views/alerts.html',
    data: {
      title: 'Alerts'
    }
  }).state('unreadAlerts', {
    parent: 'alerts',
    url: 'alerts/unread',
    templateUrl: 'views/alerts/list.html',
    controller: 'AlertsCtrl',
    data: {
      transition: 'fade'
    }
  }).state('readAlerts', {
    parent: 'alerts',
    url: 'alerts/read',
    templateUrl: 'views/alerts/list.html',
    controller: 'AlertsCtrl',
    data: {
      transition: 'fade'
    }
  })

Alerts view:

<bp-tabbar>
  <bp-tab
    ui-sref='unreadAlerts'
    bp-tab-icon="icon-inbox"
    bp-tab-title="Ungelesene Alerts">
  </bp-tab>
  <bp-tab
    ui-sref='readAlerts'
    bp-tab-icon="icon-inbox"
    bp-tab-title="Gelesene Alerts">
  </bp-tab>
</bp-tabbar>

<bp-content>
  <div ui-view></div>
</bp-content>

List view:

<div class='bp-content'>
  <bp-table bp-iscroll>
    <bp-cell class="bp-cell alert-cell" ng-repeat="alert in alerts | filter:alertsFilter">
      ...
    </bp-cell>
  </bp-table>
</div>

<bp-navbar-config>
  <bp-action ng-click="toggleTheme()" class="fa-exchange">Theme</bp-action>
  <bp-action ng-click="action()" bp-tab="action()" login class="fa-sign-in">Login</bp-action>
</bp-navbar-config>

the two bp-actions disappear and reapear as described. also they do not respond do the ng-click event after they reappear.

maybe i can make a fiddle later. Maybe you can spot the cause without it :)

from bradypodion.

davidpfahler avatar davidpfahler commented on June 24, 2024

Your state config is what comes to my mind first. I cannot remember if we ever tested this with nested states. Usually we don't need them in mobile apps, we have found. But also your URLs aren't following the conventions. The combination of that might cause unexpected behavior. Also, please try putting the bp-navbar-config element first and the bp-tabbar element last. Let me know if that does anything.

from bradypodion.

Goltergaul avatar Goltergaul commented on June 24, 2024

i solved the issue an other way, so i could not test what you suggested :/ but thanks for the help anyway!

from bradypodion.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.