Skip to content

Instantly share code, notes, and snippets.

@NyaGarcia
Created September 3, 2021 11:55
Show Gist options
  • Save NyaGarcia/72cd847839fb1872567c37b333d297e2 to your computer and use it in GitHub Desktop.
Save NyaGarcia/72cd847839fb1872567c37b333d297e2 to your computer and use it in GitHub Desktop.
Importing the DragDropModule into the app.module
import { AppComponent } from './app.component';
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
import { BrowserModule } from '@angular/platform-browser';
import { DragDropModule } from '@angular/cdk/drag-drop';
import { NgModule } from '@angular/core';
@NgModule({
declarations: [AppComponent],
imports: [BrowserModule, BrowserAnimationsModule, DragDropModule],
providers: [],
bootstrap: [AppComponent],
})
export class AppModule {}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment