import { NgModule } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
import { AppRoutingModule } from './app-routing.module';
import { RouterModule } from '@angular/router';
import { RouterLinkActive } from '@angular/router';
import { AppComponent } from './app.component';
import { NavbarComponent } from './navbar/navbar.component';
import { FooterComponent } from './footer/footer.component';
import { HomeComponent } from './home/home.component';
import { ProjectsComponent } from './projects/projects.component';
import { GalleryComponent } from './gallery/gallery.component';
import { ContactComponent } from './contact/contact.component';
import { FormsModule } from '@angular/forms'; // <-- NgModel lives here
import { HashLocationStrategy, LocationStrategy } from '@angular/common';
import { ProjectComponent } from './project/project.component';
import { ScrollTopComponent } from './scroll-top/scroll-top.component';
@NgModule({
declarations: [
AppComponent,
NavbarComponent,
FooterComponent,
HomeComponent,
ProjectsComponent,
GalleryComponent,
ContactComponent,
ProjectComponent,
ScrollTopComponent
],
imports: [
BrowserModule,
FormsModule,
AppRoutingModule
],
providers: [{
provide: LocationStrategy, useClass: HashLocationStrategy
}],
bootstrap: [AppComponent]
})
export class AppModule { }