@Armadof wrote:
Hi,
Thanks a lot for this useful framework, but at the moment, I'm getting a strange error. I think I found the problem but need help to resolve this.
Using a SharedModule, I have Angular components imported from a web project. In a component, I have:
<ion-icon name="icon-{{name}}"></ion-icon>But this shows nothing because it generate:
<ion-icon role="img" class="icon icon-ios ion-null-icon-mind" aria-label="null icon-mind" ng-reflect-name="icon-mind"></ion-icon>As you can see, I have a 'null'. I think that the problem is the component isn't aware about the ionic part and doesn't find the device. Replaces manually null by md or ios displays correctly the icon.
In the SharedModule, I've imported like this:
@NgModule({ imports: [ // import all modules to share CommonModule, IonicModule.forRoot(EventCardComponent) ], declarations: [ // Declare all shared components/pipes/directives ... EventCardComponent, ... ], exports: [ // export all shared modules/components/pipes/directives ... EventCardComponent, ... ]EventCardComponent contains the previous code.
So, how can I do to finally have the prefix device?
Thanks in advance
Posts: 1
Participants: 1
