Icons within Ionic tabs are not displaying properly

Can't display the feed tab icon:

Check the path for tabs.page.html in myapp/src/app/tabs/ directory.

<ion-tab-button tab="tab1">
  <ion-icon name="triangle"></ion-icon>
  <ion-label>Tab 1</ion-label>
</ion-tab-button>

<ion-tab-button tab="tab2">
  <ion-icon name="ellipse"></ion-icon>
  <ion-label>Tab 2</ion-label>
</ion-tab-button>

<ion-tab-button tab="tab3">
  <ion-icon name="square"></ion-icon>
  <ion-label>Tab 3</ion-label>
</ion-tab-button>

<ion-tab-button tab="feed">
   <ion-icon ios="ios-alert" md="md-alert"></ion-icon>
  <ion-label>Feed</ion-label>
</ion-tab-button>

                      

Issue arises when trying to use square, ellipse or triangle icons instead of "feed":

Double-check the code snippet below:

<ion-tab-button tab="tab1">
  <ion-icon name="triangle"></ion-icon>
  <ion-label>Tab 1</ion-label>
</ion-tab-button>

<ion-tab-button tab="tab2">
  <ion-icon name="ellipse"></ion-icon>
  <ion-label>Tab 2</ion-label>
</ion-tab-button>

<ion-tab-button tab="tab3">
  <ion-icon name="square"></ion-icon>
  <ion-label>Tab 3</ion-label>
</ion-tab-button>

<ion-tab-button tab="feed">
  <ion-icon name="triangle"></ion-icon>
  <ion-label>Feed</ion-label>
</ion-tab-button>

                      

For more information, visit my project on github.

Answer №1

Having trouble with Ionic 5 on both Android and iOS platforms? Try using the following icon:

<ion-icon name="alert-circle-outline"></ion-icon>

For more information, refer to the official documentation for Ionic 5 here.

Similar questions

If you have not found the answer to your question or you are interested in this topic, then look at other similar questions below or use the search

Error in Angular 11: Unspecified parameter in the URL

I've been working on passing a URL parameter received from a GET request to the Contracts component. However, when visiting the Contracts component in the URL, the passed parameter appears as undefined. Here's what I have tried so far: In my app ...

Troubleshooting: Issue with Angular routerlink not functioning in the sidebar section of SB Admin 2 Bootstrap 4 template

I am currently in the process of integrating the SB Admin2 template with my Angular 7 project. Unfortunately, I have encountered an issue where the links in the sidebar are unresponsive and not clickable at all. However, when I place a router link within t ...

Controller for Ionic 3 styles and loading animations

What is the best way to eliminate these white spaces in our fullscreen mode? View the image here removeWhiteSpace() { let space = document.getElementById('white-space'); if (space) { space.style.display = 'none'; ...

Obtain the promise value before returning the observable

I'm facing an issue with the code below, as it's not working properly. I want to return an observable once the promise is resolved. Any thoughts or suggestions would be greatly appreciated. getParalelos() { let _observable; this.getTo ...

Customize the default styles for Angular 2/4 Material's "md-menu" component

Seeking to customize default styles of md-menu in Angular Material. The challenge lies in the dynamic generation of elements by Angular Material, preventing direct access from HTML. Visual representation of DOM: https://i.sstatic.net/v8GE0.png Component ...

The setInterval function continues executing even after the page has been changed

I'm encountering an issue with my function where it continues to run even after the page has changed, resulting in an error. How can I go about stopping this behavior? Thank you! componentDidMount() { var current = 0; var slides = document.g ...

The observed function remains untouched

In my code, I have an if condition inside a function that looks like this: public setOption() { setTimeout(() => { if (this.isCMode && !this.quest['isCompleted']) { this.toggleOption(false); } },window['TIME ...

Creating a Typescript interface for a sophisticated response fetched from a REST API

I'm currently struggling with how to manage the response from VSTS API in typescript. Is there a way to handle this interface effectively? export interface Fields { 'System.AreaPath': any; 'System.TeamProject': string; 'Sys ...

The back button on an Angular JS application should display a confirmation dialog when pressed

I am currently working on an AngularJS mobile app that consists of various modules. One of my requirements is to access the device's back button within the application, and I also need a dialog with "OK" and "Cancel" options. Clicking on "OK" should ...

Using Angular and Typescript to implement a switch case based on specific values

I am attempting to create a switch statement with two values. switch ({'a': val_a,'b': val_b}){ case ({'x','y'}): "some code here" break; } However, this approach is not functioning as expected. ...

The TypeScript error message is indicating that the variable is being used as a value, even though it is only defined as a type

I'm encountering a persistent TypeScript error that I can't seem to suppress, not even with @ts-ignore. Oddly enough, the code functions perfectly at runtime when TypeScript is disabled temporarily for testing. Is TypeScript misbehaving in this s ...

Input value not being displayed in one-way binding

I have a challenge in binding the input value (within a foreach loop) in the HTML section of my component to a function: <input [ngModel]="getStepParameterValue(parameter, testCaseStep)" required /> ... // Retrieving the previously saved v ...

The dreaded error message [ERR_REQUIRE_ESM] has appeared, indicating that the require() function for an ES

I am currently developing a Discord bot using TypeScript and discord.js. However, when I attempted to compile the code this morning, I encountered the following error: C:\SECRET\Kostegator\dist\Util\getMeme.js:17 const node_fetch_1 ...

Steps for implementing both update and submit functionality on a single button:Learn how to combine

While working on the edit functionality, I encountered a situation where after editing records in a form, I needed to check if the id is null. Depending on whether it is null or not, I wanted to make either the submit button active or the update button. Ho ...

The request body doesn't meet the interface requirements, but it does not trigger an error response

I created a specific interface called NewTransactionPayload to ensure that only objects of this type are accepted in the request body. Strangely, TypeScript does not show any errors when I host the application. Why is that? // Sample interfaces interface ...

Determine the generic type of the parent class based on the constructor of the child class

Below is a code snippet illustrating the issue at hand: class Parent<T = unknown> { constructor(private prop: T) {} getProp(): T { return this.prop; } } class Child extends Parent { constructor() { super({ ...

How can I move the cursor to the beginning of a long string in Mat-autocomplete when it appears at the end?

I'm struggling to figure out how to execute a code snippet for my Angular app on Stack Overflow. Specifically, I am using mat-autocomplete. When I select a name that is 128 characters long, the cursor appears at the end of the selected string instead ...

What is the best way to add all the items from an array to a div element?

I am currently facing an issue where only the last object in my array is being added to my div using the code below. How can I modify it to add all objects from the array to my div? ajaxHelper.processRequest((response: Array<Vehicle.Vehicle>) ...

Are you looking for a streamlined method to create styled components with MaterialUI?

I am exploring ways to easily define convenient components in my application utilizing Material-UI. After referring to an example from the Material-UI documentation for Appbar, I attempted to incorporate some React components for better readability. My c ...

Angular 4 validation triggering the highlighting of control labels

In the process of implementing validation in my Angular 4 application, I have encountered an issue that needs some tweaking. The validation itself is functioning correctly, but I would like to modify the way error messages are displayed. Currently, when ...