question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

bug: ion-tab-bar slot not working with Angular binding

See original GitHub issue

Bug Report

Ionic version:

[x] 4.5.0

Current behavior:

When assigning a variable to position the tab bar to top or bottom, the tab bar does not position correctly

Expected behavior:

For example, setting the slot position to top from a variable in a component, the tab bar should be on the top.

Steps to reproduce:

<ion-tab-bar [slot]=“tabSlotPosition”> in the template and tabSlotPosition set to ‘top’ in the component.

Related code:

Other information:

If I set the value hard coded in the code, it works normally. For example: <ion-tab-bar slot="top">

Ionic info:

Ionic:

Ionic CLI : 5.4.1 (/Users/jeremie/.nvm/versions/node/v11.1.0/lib/node_modules/ionic) Ionic Framework : @ionic/angular 4.5.0 @angular-devkit/build-angular : 0.13.9 @angular-devkit/schematics : 7.3.9 @angular/cli : 7.3.9 @ionic/angular-toolkit : 1.5.1

Cordova:

Cordova CLI : 9.0.0 (cordova-lib@9.0.1) Cordova Platforms : android 8.1.0 Cordova Plugins : cordova-plugin-ionic-keyboard 2.1.3, cordova-plugin-ionic-webview 4.1.1, (and 14 other plugins)

Utility:

cordova-res : 0.3.0 (update available: 0.6.0) native-run : 0.2.6 (update available: 0.2.8)

System:

Android SDK Tools : 26.1.1 (/Users/jeremie/Library/Android/sdk) ios-deploy : 1.9.4 ios-sim : 8.0.2 NodeJS : v11.1.0 (/Users/jeremie/.nvm/versions/node/v11.1.0/bin/node) npm : 6.10.3 OS : macOS Mojave Xcode : Xcode 11.0 Build version 11A420a

Issue Analytics

  • State:open
  • Created 4 years ago
  • Reactions:6
  • Comments:14

github_iconTop GitHub Comments

4reactions
jsandler18commented, May 18, 2020

+1 I am also experiencing this issue.

2reactions
Abrarsscommented, Nov 24, 2021

still facing the same issue

Read more comments on GitHub >

github_iconTop Results From Across the Web

bug: ion-tab-bar slot not working with Angular binding · Issue ...
Expected behavior: For example, setting the slot position to top from a variable in a component, the tab bar should be on the...
Read more >
Slot binding in tab Ionic 4 - angular - Stack Overflow
I wanted to put my tab bar at the bottom only if the platform is mobile, but it doesn't work. Is there any...
Read more >
Property binding "slot" doesn't work at ion-tab-bar - Ionic Forum
Hi! I need to place ion-tab-bar on bottom when the platform is mobile, and on top when is not mobile. I used property...
Read more >
@ionic/angular | Yarn - Package Manager
Ionic is an open source app development toolkit for building modern, fast, top-quality cross-platform native and Progressive Web Apps from a single codebase ......
Read more >
ionic Archives - LogRocket Blog
Ionic lets developers build mobile apps with Angular, React, Vue.js, ... Hundreds of users contribute to Ionic's codebase and new issues are created ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found