Comments (4)
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.
$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.
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.
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)
- Merge bpSref w/ bpView
- Slide Animation broken
- Generate LESS module files
- Write a Guide on how to use and customize the CSS builds HOT 1
- up state detection fails when using parameters in the url HOT 1
- If there's only one action in an iOS navbar put it on the right side
- Add `role="link"` to bp-sref and bp-tab
- Don't overwrite aria attributes if they already exist
- bpAction should log error when no icon is defined
- Spawned Toolbars of injected navbars don't appear
- Test ticket from Code Climate
- bp-search should be input type agnostic
- bp-scroll directive rendering scrollbars when there is no content to scroll HOT 3
- Implement triaging system HOT 1
- iscroll directive and scope HOT 5
- bp-search directive is using missing icon HOT 1
- bp-search cannot detect type attribute in iOS Web View
- iscroll not reinitializing itself when the content changes HOT 1
- Android Navbar bp-action-overflow shows up for >= 3 icons HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bradypodion.