“NGX Toastr” Kode Jawaban

NGX Toastr

npm install ngx-toastr --save
Clumsy Chipmunk

Pasang toastr dalam sudut

npm install ngx-toastr --save
Annoying Antelope

NGX-TOASTR

npm install @angular/animations --save
Nice Narwhal

NGX-TOASTR

import { CommonModule } from '@angular/common';
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';

import { ToastrModule } from 'ngx-toastr';

@NgModule({
  imports: [
    CommonModule,
    BrowserAnimationsModule, // required animations module
    ToastrModule.forRoot(), // ToastrModule added
  ],
  bootstrap: [App],
  declarations: [App],
})
class MainModule {}
Nice Narwhal

NGX-TOASTR

// regular style toast
@import '~ngx-toastr/toastr';

// bootstrap style toast
// or import a bootstrap 4 alert styled design (SASS ONLY)
// should be after your bootstrap imports, it uses bs4 variables, mixins, functions
@import '~ngx-toastr/toastr-bs4-alert';

// if you'd like to use it without importing all of bootstrap it requires
@import '~bootstrap/scss/functions';
@import '~bootstrap/scss/variables';
@import '~bootstrap/scss/mixins';
@import '~ngx-toastr/toastr-bs4-alert';
Nice Narwhal

Jawaban yang mirip dengan “NGX Toastr”

Pertanyaan yang mirip dengan “NGX Toastr”

Jelajahi jawaban kode populer menurut bahasa

Jelajahi bahasa kode lainnya