Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'fa' is not a known element #46

Open
carl-parrish opened this issue May 29, 2018 · 2 comments
Open

'fa' is not a known element #46

carl-parrish opened this issue May 29, 2018 · 2 comments

Comments

@carl-parrish
Copy link

Not sure what I'm doing wrong but It's not recognizing the fa directive. On an Angular 5 app (soon to be upgraded to NG 6)

 <fa *ngIf="!weatherData"
        [name]="'spinner'"
        [spin]=true
    ></fa>

Full Code Available Here

It says

'fa' is not a known element:
1. If 'fa' is an Angular component, then verify that it is part of this module.

In my app.module.ts I have

import { BrowserModule } from '@angular/platform-browser';
import { FormsModule } from '@angular/forms';
import { HttpModule } from '@angular/http';
import { NgModule } from '@angular/core';
import { Angular2FontawesomeModule } from 'angular2-fontawesome/angular2-fontawesome';

import { AppComponent } from './app.component';
import { TemperaturePipe } from './temperature.pipe';
import { WeatherService } from './services/weather.service';

@NgModule({
  declarations: [
    AppComponent,
    TemperaturePipe
  ],
  imports: [
    BrowserModule,
    FormsModule,
    HttpModule,
    Angular2FontawesomeModule
  ],
  providers: [ WeatherService ],
  bootstrap: [AppComponent]
})
export class AppModule { }
@sagi-walkme
Copy link

I have the same problem

@sagi-walkme
Copy link

sagi-walkme commented Aug 8, 2018

resolved by replacing <fa></fa> with <i fa></i>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants