ionic-team / ionic-team/ionicons
bug: Ionic v8 addIcon not working with composed name icons
- Lingua principale
- TypeScript
- Stelle
- 18.2k
- Fork
- 2.1k
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
### Current Behavior
I'm trying to use multiple ionic icons in my application, but only the simple ones are working for example: exit, calendar, add. If I try
it is not working.
Here are some examples:
**html**
`
Salir
`
**ts**
import { ellipsisVerticalOutline, exit } from "ionicons/icons";
import { addIcons } from "ionicons";
export class AppComponent implements OnInit, OnDestroy {
...
constructor(
private platform: Platform,
//rivate splashScreen: SplashScreen,
//private statusBar: StatusBar,
private authService: AuthService,
private locationService: LocationService,
private router: Router,
private menuCtrl: MenuController,
private alertCtrl: AlertController,
//private messagingService: MessagingService,
// private translateService: TranslateService
) {
this.initializeApp();
addIcons({exit,ellipsisVerticalOutline});
}
}

If I change html for:
`
Salir
`

Not Working.
### Expected Behavior
That the icon I'm using shows
### Steps to Reproduce
Use some basic icons with no composed names like exit, calendar
Then use some icons like
### Code Reproduction URL
_No response_
### Additional Information
_No response_
Guida per i contributori
Apri la guida per i contributori
Valutazione
Questa issue non è ancora stata valutata.