Skip to content

'fa' is not a known element #46

@carl-parrish

Description

@carl-parrish

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 { }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions